From 3c616fbb19d7156a67fcb803dc656c07a848e9f8 Mon Sep 17 00:00:00 2001 From: Jun Mukai Date: Wed, 13 Mar 2024 21:03:00 -0700 Subject: [PATCH] potential fix for windows --- crates/llm-chain-gemma-sys/build.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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")