Unverified Commit 34f9c021 authored by yiwu-arbug's avatar yiwu-arbug Committed by GitHub

Specify WITH_TESTS=OFF and WITH_TOOLS=OFF (#348)

Setting `WITH_TESTS=OFF` and `WITH_TOOLS=OFF` explicitly. Since we specify target explicitly, even without setting these flags we don't really build rocksdb tests and tools. But still, let's set it anyway to make sure.

Closes #344 
parent e4d5afe9
...@@ -110,7 +110,10 @@ fn build_rocksdb() -> Build { ...@@ -110,7 +110,10 @@ fn build_rocksdb() -> Build {
.define("WITH_ZSTD", "ON") .define("WITH_ZSTD", "ON")
.register_dep("SNAPPY") .register_dep("SNAPPY")
.define("WITH_SNAPPY", "ON") .define("WITH_SNAPPY", "ON")
.define("WITH_TESTS", "OFF")
.define("WITH_TOOLS", "OFF")
.build_target("rocksdb") .build_target("rocksdb")
.very_verbose(true)
.build(); .build();
let build_dir = format!("{}/build", dst.display()); let build_dir = format!("{}/build", dst.display());
let mut build = Build::new(); let mut build = Build::new();
......
...@@ -36,7 +36,10 @@ fn main() { ...@@ -36,7 +36,10 @@ fn main() {
.define("WITH_ZSTD", "ON") .define("WITH_ZSTD", "ON")
.register_dep("SNAPPY") .register_dep("SNAPPY")
.define("WITH_SNAPPY", "ON") .define("WITH_SNAPPY", "ON")
.define("WITH_TITAN_TESTS", "OFF")
.define("WITH_TITAN_TOOLS", "OFF")
.build_target("titan") .build_target("titan")
.very_verbose(true)
.build(); .build();
println!("cargo:rustc-link-search=native={}/build", dst.display()); println!("cargo:rustc-link-search=native={}/build", dst.display());
println!("cargo:rustc-link-lib=static=titan"); println!("cargo:rustc-link-lib=static=titan");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment