Browse Source

build: update cargo build script

master
Dnomd343 4 weeks ago
parent
commit
f5702a4b7b
  1. 6
      src/core_ffi/rust_ffi/build.rs

6
src/core_ffi/rust_ffi/build.rs

@ -12,11 +12,7 @@ use cxx_build::CFG;
fn main() {
if std::env::var("DOCS_RS").is_err() {
cmake::Config::new("klotski")
.define("CARGO_BUILD:BOOL", "ON")
.define("KLSK_ENABLE_TESTING:BOOL", "OFF")
.define("KLSK_ENABLE_BENCHMARK:BOOL", "OFF")
.define("KLSK_C_FFI:BOOL", "OFF")
.define("KLSK_PYTHON_FFI:BOOL", "OFF")
.define("KLSK_ENABLE_LTO:BOOL", "ON")
.build();
println!("cargo:rustc-link-lib=static=klotski_core");

Loading…
Cancel
Save