1
Fork 0

Unset RUSTC_WRAPPER in cg_clif's build system

This commit is contained in:
bjorn3 2025-03-31 15:09:43 +00:00
parent b6d74b5e15
commit fadea8e0ba

View file

@ -105,7 +105,11 @@ impl CargoProject {
.arg(self.manifest_path(dirs)) .arg(self.manifest_path(dirs))
.arg("--target-dir") .arg("--target-dir")
.arg(self.target_dir(dirs)) .arg(self.target_dir(dirs))
.arg("--locked"); .arg("--locked")
// bootstrap sets both RUSTC and RUSTC_WRAPPER to the same wrapper. RUSTC is already
// respected by the rustc-clif wrapper, but RUSTC_WRAPPER will misinterpret rustc-clif
// as filename, so we need to unset it.
.env_remove("RUSTC_WRAPPER");
if dirs.frozen { if dirs.frozen {
cmd.arg("--frozen"); cmd.arg("--frozen");