Skip to content

Commit af25358

Browse files
committed
Rustbuild: enable -Zsplit-metadata for stage != 0
1 parent 8c65a66 commit af25358

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/builder.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,11 @@ impl<'a> Builder<'a> {
10951095
rustflags.arg("-Zunstable-options");
10961096
}
10971097

1098+
if stage != 0 {
1099+
// FIXME remove once cargo enables this by default
1100+
rustflags.arg("-Zsplit-metadata");
1101+
}
1102+
10981103
// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
10991104
// but this breaks CI. At the very least, stage0 `rustdoc` needs `--cfg bootstrap`. See
11001105
// #71458.

0 commit comments

Comments
 (0)