forked from nervosnetwork/sparse-merkle-tree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.rs
More file actions
24 lines (23 loc) · 720 Bytes
/
build.rs
File metadata and controls
24 lines (23 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
fn main() {
#[cfg(feature = "smtc")]
{
println!("cargo:rerun-if-changed=c/ckb_smt.h");
cc::Build::new()
.file("src/ckb_smt.c")
.static_flag(true)
.flag("-O3")
.flag("-fvisibility=hidden")
.flag("-fdata-sections")
.flag("-ffunction-sections")
.include("src/")
.include("c/")
.include("c/deps/ckb-c-stdlib")
.flag("-Wall")
.flag("-Werror")
.flag("-Wno-unused-parameter")
.flag("-Wno-nonnull")
.define("__SHARED_LIBRARY__", None)
.define("CKB_STDLIB_NO_SYSCALL_IMPL", None)
.compile("smt-c-impl");
}
}