Skip to content

Commit

Permalink
Rustbuild: enable -Zsplit-metadata for stage != 0
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Feb 12, 2022
1 parent 8c65a66 commit af25358
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,11 @@ impl<'a> Builder<'a> {
rustflags.arg("-Zunstable-options");
}

if stage != 0 {
// FIXME remove once cargo enables this by default
rustflags.arg("-Zsplit-metadata");
}

// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
// but this breaks CI. At the very least, stage0 `rustdoc` needs `--cfg bootstrap`. See
// #71458.
Expand Down

0 comments on commit af25358

Please sign in to comment.