diff --git a/crates/llm-chain-gemma-sys/build.rs b/crates/llm-chain-gemma-sys/build.rs index 0dfa45fc..a4c37d30 100644 --- a/crates/llm-chain-gemma-sys/build.rs +++ b/crates/llm-chain-gemma-sys/build.rs @@ -52,8 +52,9 @@ fn main() { let code = std::process::Command::new("cmake") .arg("--build") .arg(".") - .arg("--config Release") - .arg("--") + .arg("--config") + .arg("Release") + .arg("--target") .arg("libgemma") .status() .expect("Failed to build lib"); @@ -125,7 +126,7 @@ fn main() { cc::Build::new() .cpp(true) .file("src/bindings.cc") - .flag("--std=c++17") + .std("c++17") .include("./gemma.cpp") .include("./gemma.cpp/build/_deps/highway-src") .include("./gemma.cpp/build/_deps/sentencepiece-src")