Skip to content

Commit 695cdfc

Browse files
committed
Configure Vulkan library search path for macOS target in build.rs
1 parent 8e050cf commit 695cdfc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

gpubench-sys/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ fn main() {
1515
}
1616
} else {
1717
println!("cargo:rustc-link-lib=vulkan");
18+
if target_os == "macos" {
19+
if let Ok(sdk) = std::env::var("VULKAN_SDK") {
20+
println!("cargo:rustc-link-search=native={}/lib", sdk);
21+
}
22+
}
1823
}
1924

2025
cxx_build::bridge("src/lib.rs")

0 commit comments

Comments
 (0)