We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f39d1f commit 415610cCopy full SHA for 415610c
1 file changed
src/tools/miri/cargo-miri/src/setup.rs
@@ -89,7 +89,10 @@ pub fn setup(
89
let cargo_cmd = {
90
let mut command = cargo();
91
// Allow JSON targets since users do not have a good way to set this flag otherwise.
92
- command.arg("-Zjson-target-spec");
+ if !env::var("RUSTC_STAGE").is_ok_and(|s| s == "1") {
93
+ // ^ is a HACK for bootstrap cargo. FIXME(cfg(bootstrap)) remove the hack.
94
+ command.arg("-Zjson-target-spec");
95
+ }
96
// Use Miri as rustc to build a libstd compatible with us (and use the right flags).
97
// We set ourselves (`cargo-miri`) instead of Miri directly to be able to patch the flags
98
// for `libpanic_abort` (usually this is done by bootstrap but we have to do it ourselves).
0 commit comments