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 7ec3b8d commit e53407eCopy full SHA for e53407e
src/bootstrap/src/core/builder.rs
@@ -1484,6 +1484,12 @@ impl<'a> Builder<'a> {
1484
hostflags.arg("-Zunstable-options");
1485
hostflags.arg("--check-cfg=cfg(bootstrap)");
1486
1487
+ // cfg(bootstrap) unconditionally pass this once the bootstrap compiler understands it
1488
+ if stage != 0 {
1489
+ // FIXME remove once cargo enables this by default
1490
+ rustflags.arg("-Zsplit-metadata");
1491
+ }
1492
+
1493
// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
1494
// but this breaks CI. At the very least, stage0 `rustdoc` needs `--cfg bootstrap`. See
1495
// #71458.
0 commit comments