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 committed Jan 7, 2025
1 parent 030cd6c commit c40b9c6
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 @@ -101,7 +101,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 c40b9c6

Please sign in to comment.