Skip to content

Commit edb812f

Browse files
authored
Merge pull request #614 from xutianyi1999/main
fix shared libs not found on windows #583
2 parents 6d0a361 + 38bb1c1 commit edb812f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llama-cpp-sys-2/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ fn extract_lib_assets(out_dir: &Path) -> Vec<PathBuf> {
101101
"*.so"
102102
};
103103

104-
let libs_dir = out_dir.join("lib");
104+
let shared_libs_dir = if cfg!(windows) { "bin" } else { "lib" };
105+
let libs_dir = out_dir.join(shared_libs_dir);
105106
let pattern = libs_dir.join(shared_lib_pattern);
106107
debug_log!("Extract lib assets {}", pattern.display());
107108
let mut files = Vec::new();

0 commit comments

Comments
 (0)