|
|
@ -438,6 +438,7 @@ fn cxx_standard() -> String { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[allow(dead_code)] |
|
|
|
fn update_submodules() { |
|
|
|
fn update_submodules() { |
|
|
|
let program = "git"; |
|
|
|
let program = "git"; |
|
|
|
let dir = "../"; |
|
|
|
let dir = "../"; |
|
|
@ -461,6 +462,9 @@ fn update_submodules() { |
|
|
|
fn main() { |
|
|
|
fn main() { |
|
|
|
if !Path::new("librocksdb-sys/rocksdb/AUTHORS").exists() { |
|
|
|
if !Path::new("librocksdb-sys/rocksdb/AUTHORS").exists() { |
|
|
|
println!("cargo:rustc-cfg=NG_ROCKS_DB_NOT_FOUND"); |
|
|
|
println!("cargo:rustc-cfg=NG_ROCKS_DB_NOT_FOUND"); |
|
|
|
|
|
|
|
if std::env::var("DOCS_RS").is_ok() { |
|
|
|
|
|
|
|
println!("cargo:rustc-cfg=DOCS_RS"); |
|
|
|
|
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
//update_submodules();
|
|
|
|
//update_submodules();
|
|
|
|
} |
|
|
|
} |
|
|
|