From 1ef94ce6c87f11cd52b2fc151f9907c5171411cc Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Tue, 10 Sep 2024 13:51:38 -0700 Subject: [PATCH] fix(build): disable GGML_NATIVE explicitly (#3118) --- crates/llama-cpp-server/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/llama-cpp-server/build.rs b/crates/llama-cpp-server/build.rs index 8161edc5f..35a4edbb8 100644 --- a/crates/llama-cpp-server/build.rs +++ b/crates/llama-cpp-server/build.rs @@ -10,9 +10,9 @@ fn main() { let mut config = Config::new("./llama.cpp"); config.profile("Release"); - config.define("LLAMA_NATIVE", "OFF"); + config.define("GGML_NATIVE", "OFF"); + config.define("GGML_NATIVE_DEFAULT", "OFF"); config.define("BUILD_SHARED_LIBS", "OFF"); - config.define("INS_ENB", "ON"); if cfg!(target_os = "macos") { config.define("LLAMA_METAL", "ON");