Skip to content

Commit 0ee4e5a

Browse files
authored
Merge pull request #647 from vlovich/fix-packaging
Fix llama.cpp build dirtying src and breaking packaging
2 parents c2dc99b + f600bf8 commit 0ee4e5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llama-cpp-sys-2/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ fn main() {
315315
.always_configure(false);
316316

317317
let build_dir = config.build();
318+
std::fs::rename(
319+
llama_src.join("common/build-info.cpp"),
320+
build_dir.join("build-info.cpp"),
321+
)
322+
.unwrap();
318323

319324
// Search paths
320325
println!("cargo:rustc-link-search={}", out_dir.join("lib").display());

0 commit comments

Comments
 (0)