Skip to content

Commit 9d7ccd6

Browse files
committed
fix spirv-tools skipping C++ compile on install
close #140
1 parent e87c3d7 commit 9d7ccd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/cargo-gpu-install/src/install.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ package = "rustc_codegen_spirv"
284284

285285
crate::user_output!("Compiling `rustc_codegen_spirv` from source {}\n", source);
286286
let mut cargo = spirv_builder::cargo_cmd::CargoCmd::new();
287+
// Make sure spirv-tools is build normally and does not skip C++ compile due to "being run in clippy"
288+
// We add this only to our install and not generally to `CargoCmd` since we do want to forward clippy args
289+
// to clippy running on the spirv target via e.g. `cargo gpu clippy`.
290+
cargo.env_remove("CLIPPY_ARGS");
287291
cargo
288292
.current_dir(&install_dir)
289293
.arg(format!("+{toolchain_channel}"))

0 commit comments

Comments
 (0)