From f5702a4b7bf0b8cbb691b1770b27ddbb049a7afb Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 28 Dec 2024 15:28:17 +0800 Subject: [PATCH] build: update cargo build script --- src/core_ffi/rust_ffi/build.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core_ffi/rust_ffi/build.rs b/src/core_ffi/rust_ffi/build.rs index 90d42ba..abdd89d 100644 --- a/src/core_ffi/rust_ffi/build.rs +++ b/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");