Skip to content

Commit

Permalink
Fix library name on Windows, leave as is elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
vgf89 committed Mar 26, 2024
1 parent fc0dac9 commit a09e487
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/llama-cpp-bindings/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ fn build_llama_cpp() {
println!("cargo:rustc-link-search={}/lib", vulkan_sdk_path);
}
config.define("LLAMA_VULKAN", "ON");
println!("cargo:rustc-link-lib=vulkan");
if cfg!(target_os = "windows") {
println!("cargo:rustc-link-lib=vulkan-1");
} else {
println!("cargo:rustc-link-lib=vulkan");
}
}

// By default, this value is automatically inferred from Rust’s compilation profile.
Expand Down

0 comments on commit a09e487

Please sign in to comment.