8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96548c8 commit b9cde4aCopy full SHA for b9cde4a
crates/llama_cpp_sys/build.rs
@@ -14,7 +14,6 @@ fn main() {
14
15
let dst = cmake::Config::new(SUBMODULE_DIR)
16
.configure_arg("DLLAMA_STATIC=On")
17
- .configure_arg("DBUILD_SHARED_LIBS=On")
18
.build();
19
20
println!("cargo:rustc-link-search=native={}/lib", dst.display());
@@ -25,7 +24,11 @@ fn main() {
25
24
.header(HEADER_DIR)
26
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
27
.generate_comments(false)
28
- .allowlist_file(HEADER_DIR)
+ .allowlist_function("llama_.*")
+ .allowlist_type("llama_.*")
29
+ .allowlist_function("ggml_.*")
30
+ .allowlist_type("ggml_.*")
31
+ .clang_arg("-xc++")
32
.generate()
33
.expect("Unable to generate bindings");
34
0 commit comments