File tree 1 file changed +5
-2
lines changed
src/tools/miri/cargo-miri/src
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,11 @@ pub fn phase_cargo_miri(mut args: impl Iterator<Item = String>) {
176
176
// Set `--target-dir` to `miri` inside the original target directory.
177
177
let target_dir = get_target_dir ( & metadata) ;
178
178
cmd. arg ( "--target-dir" ) . arg ( target_dir) ;
179
- // Enable cross-target doctests (for consistency between different cargo versions).
180
- cmd. arg ( "-Zdoctest-xcompile" ) ;
179
+ // Only when running in x.py (where we are running with beta cargo): set `RUSTC_STAGE`.
180
+ // Will have to be removed on next bootstrap bump. tag: cfg(bootstrap).
181
+ if env:: var_os ( "RUSTC_STAGE" ) . is_some ( ) {
182
+ cmd. arg ( "-Zdoctest-xcompile" ) ;
183
+ }
181
184
182
185
// *After* we set all the flags that need setting, forward everything else. Make sure to skip
183
186
// `--target-dir` (which would otherwise be set twice).
You can’t perform that action at this time.
0 commit comments