We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58f32da commit be5d721Copy full SHA for be5d721
src/bootstrap/compile.rs
@@ -462,11 +462,13 @@ impl Step for StartupObjects {
462
let dst_file = &dst_dir.join(file.to_string() + ".o");
463
if !up_to_date(src_file, dst_file) {
464
let mut cmd = Command::new(&builder.initial_rustc);
465
+ cmd.env("RUSTC_BOOTSTRAP", "1");
466
+ if !builder.local_rebuild {
467
+ // a local_rebuild compiler already has stage1 features
468
+ cmd.arg("--cfg").arg("bootstrap");
469
+ }
470
builder.run(
- cmd.env("RUSTC_BOOTSTRAP", "1")
- .arg("--cfg")
- .arg("bootstrap")
- .arg("--target")
471
+ cmd.arg("--target")
472
.arg(target.rustc_target_arg())
473
.arg("--emit=obj")
474
.arg("-o")
0 commit comments