We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 090d5ea commit 8aa7dd0Copy full SHA for 8aa7dd0
src/bootstrap/src/core/build_steps/synthetic_targets.rs
@@ -59,6 +59,11 @@ fn create_synthetic_target(
59
let mut cmd = Command::new(builder.rustc(compiler));
60
cmd.arg("--target").arg(base.rustc_target_arg());
61
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
67
cmd.stdout(Stdio::piped());
68
69
let output = cmd.spawn().unwrap().wait_with_output().unwrap();
0 commit comments