Skip to content

Commit 8aa7dd0

Browse files
committed
enable RUSTC_BOOTSTRAP on panic=abort mir-opt test
Signed-off-by: onur-ozkan <[email protected]>
1 parent 090d5ea commit 8aa7dd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/build_steps/synthetic_targets.rs

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ fn create_synthetic_target(
5959
let mut cmd = Command::new(builder.rustc(compiler));
6060
cmd.arg("--target").arg(base.rustc_target_arg());
6161
cmd.args(["-Zunstable-options", "--print", "target-spec-json"]);
62+
63+
// If `rust.channel` is set to either beta or stable, rustc will complain that
64+
// we cannot use nightly features. So `RUSTC_BOOTSTRAP` is needed here.
65+
cmd.env("RUSTC_BOOTSTRAP", "1");
66+
6267
cmd.stdout(Stdio::piped());
6368

6469
let output = cmd.spawn().unwrap().wait_with_output().unwrap();

0 commit comments

Comments
 (0)