We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c941fcd + f6b0144 commit 2f2e129Copy full SHA for 2f2e129
cargo-miri/src/phases.rs
@@ -179,6 +179,13 @@ pub fn phase_cargo_miri(mut args: impl Iterator<Item = String>) {
179
);
180
}
181
cmd.env("RUSTC_WRAPPER", &cargo_miri_path);
182
+ // There's also RUSTC_WORKSPACE_WRAPPER, which gets in the way of our own wrapping.
183
+ if env::var_os("RUSTC_WORKSPACE_WRAPPER").is_some() {
184
+ println!(
185
+ "WARNING: Ignoring `RUSTC_WORKSPACE_WRAPPER` environment variable, Miri does not support wrapping."
186
+ );
187
+ }
188
+ cmd.env_remove("RUSTC_WORKSPACE_WRAPPER");
189
// We are going to invoke `MIRI` for everything, not `RUSTC`.
190
if env::var_os("RUSTC").is_some() && env::var_os("MIRI").is_none() {
191
println!(
0 commit comments