Skip to content

Commit

Permalink
fix shared libs not found on windows utilityai#583
Browse files Browse the repository at this point in the history
  • Loading branch information
xutianyi1999 authored and tinglou committed Jan 15, 2025
1 parent 89c22b8 commit 052a954
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llama-cpp-sys-2/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ fn extract_lib_assets(out_dir: &Path) -> Vec<PathBuf> {
"*.so"
};

let libs_dir = out_dir.join("lib");
let shared_libs_dir = if cfg!(windows) { "bin" } else { "lib" };
let libs_dir = out_dir.join(shared_libs_dir);
let pattern = libs_dir.join(shared_lib_pattern);
debug_log!("Extract lib assets {}", pattern.display());
let mut files = Vec::new();
Expand Down

0 comments on commit 052a954

Please sign in to comment.