Skip to content

Commit 0d59098

Browse files
authored
Merge pull request #204 from anagri/main
Added passthrough metadata information to help downstream projects build native libraries using llama.cpp build artifacts
2 parents 047898c + eff774d commit 0d59098

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llama-cpp-sys-2/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ fn main() {
199199
bindings
200200
.write_to_file(out_path.join("bindings.rs"))
201201
.expect("failed to write bindings to file");
202+
let llama_cpp_dir = PathBuf::from("llama.cpp").canonicalize().unwrap();
203+
println!("cargo:INCLUDE={}", llama_cpp_dir.to_str().unwrap());
204+
println!("cargo:OUT_DIR={}", out_path.to_str().unwrap());
202205
}
203206

204207
// courtesy of https://github.com/rustformers/llm

0 commit comments

Comments
 (0)