We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 579dc8c + 9d55c01 commit 266957aCopy full SHA for 266957a
llama-cpp-sys-2/build.rs
@@ -658,6 +658,11 @@ fn main() {
658
config.cxxflag("/FS");
659
}
660
TargetOs::Linux => {
661
+ // If we are not using system provided vulkan SDK, add vulkan libs for linking
662
+ if let Ok(vulkan_path) = env::var("VULKAN_SDK") {
663
+ let vulkan_lib_path = Path::new(&vulkan_path).join("lib");
664
+ println!("cargo:rustc-link-search={}", vulkan_lib_path.display());
665
+ }
666
println!("cargo:rustc-link-lib=vulkan");
667
668
_ => (),
0 commit comments