Skip to content

Commit

Permalink
permit windows .exe extension when looking for spirv-builder-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 7, 2024
1 parent 332fcce commit 5918e69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/cargo-gpu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,11 @@ impl Install {
panic!("spirv-builder-cli build failed");
}

let cli_path = release.join("spirv-builder-cli");
let cli_path = if cfg!(target_os = "windows") {
release.join("spirv-builder-cli").with_extension("exe")
} else {
release.join("spirv-builder-cli")
};
if cli_path.is_file() {
log::info!("successfully built {}", cli_path.display());
std::fs::rename(&cli_path, &dest_cli_path).unwrap();
Expand Down

0 comments on commit 5918e69

Please sign in to comment.