Skip to content

Commit

Permalink
Merge pull request #614 from xutianyi1999/main
Browse files Browse the repository at this point in the history
fix shared libs not found on windows #583
  • Loading branch information
MarcusDunn authored Jan 15, 2025
2 parents 6d0a361 + 38bb1c1 commit edb812f
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 edb812f

Please sign in to comment.