Skip to content

Commit cb5e860

Browse files
Quite nvcc warning not on linux (#6005)
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent 5f72ad2 commit cb5e860

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vortex-cuda/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ fn main() {
1212
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").expect("Failed to get manifest dir");
1313
let kernels_dir = Path::new(&manifest_dir).join("kernels");
1414

15-
if !has_nvcc() {
16-
// Don't run CUDA compilation if nvcc is not available.
15+
if cfg!(target_os = "linux") && !has_nvcc() {
16+
// Only warn on Linux where we expect CUDA to be available.
1717
println!("cargo:warning=nvcc not found, skipping CUDA kernel compilation");
1818
return;
1919
}

0 commit comments

Comments
 (0)