Skip to content

Commit

Permalink
fix: disable LLAMA_NATIVE in build
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Feb 28, 2024
1 parent ebea511 commit aea57a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/llama-cpp-bindings/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ fn main() {

fn build_llama_cpp() {
let mut config = Config::new("llama.cpp");
config.define("LLAMA_NATIVE", "OFF");
config.define("INS_ENB", "ON");

if cfg!(target_os = "macos") {
config.define("LLAMA_METAL", "ON");
println!("cargo:rustc-link-lib=framework=Foundation");
Expand Down

0 comments on commit aea57a2

Please sign in to comment.