about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-03-26 08:27:13 +0100
committerRalf Jung <post@ralfj.de>2024-03-26 08:27:13 +0100
commit377caa2afd81c3425ba9e82409ea25d5e9d593a8 (patch)
tree90c8a2052b6684745801ae9d583bcca888b75786
parentcf1eb93a02349d31f96ab2737b6f15cf6e6df534 (diff)
downloadrust-377caa2afd81c3425ba9e82409ea25d5e9d593a8.tar.gz
rust-377caa2afd81c3425ba9e82409ea25d5e9d593a8.zip
we have to ignore RUSTC_WORKSPACE_WRAPPER as well
-rw-r--r--src/tools/miri/cargo-miri/src/phases.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/miri/cargo-miri/src/phases.rs b/src/tools/miri/cargo-miri/src/phases.rs
index e547599d954..52f96a28c9d 100644
--- a/src/tools/miri/cargo-miri/src/phases.rs
+++ b/src/tools/miri/cargo-miri/src/phases.rs
@@ -179,6 +179,13 @@ pub fn phase_cargo_miri(mut args: impl Iterator<Item = String>) {
         );
     }
     cmd.env("RUSTC_WRAPPER", &cargo_miri_path);
+    // There's also RUSTC_WORKSPACE_WRAPPER, which gets in the way of our own wrapping.
+    if env::var_os("RUSTC_WORKSPACE_WRAPPER").is_some() {
+        println!(
+            "WARNING: Ignoring `RUSTC_WORKSPACE_WRAPPER` environment variable, Miri does not support wrapping."
+        );
+    }
+    cmd.env_remove("RUSTC_WORKSPACE_WRAPPER");
     // We are going to invoke `MIRI` for everything, not `RUSTC`.
     if env::var_os("RUSTC").is_some() && env::var_os("MIRI").is_none() {
         println!(