Skip to content

Commit

Permalink
Fix run-make rmake.rs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Mar 10, 2024
1 parent c8e3ab3 commit 676455f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/bootstrap/src/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1530,10 +1530,16 @@ impl<'a> Builder<'a> {
hostflags.arg("-Zunstable-options");
hostflags.arg("--check-cfg=cfg(bootstrap)");

// cfg(bootstrap) unconditionally pass this once the bootstrap compiler understands it
if stage != 0 {
// FIXME remove once cargo enables this by default
rustflags.arg("-Zsplit-metadata");
match mode {
Mode::Std | Mode::Rustc | Mode::Codegen => {
// cfg(bootstrap) unconditionally pass this once the bootstrap compiler understands it
if stage != 0 {
// FIXME remove once cargo enables this by default
rustflags.arg("-Zsplit-metadata");
}
}
// Tools may not expect to be compiled with -Zsplit-metadata
Mode::ToolBootstrap | Mode::ToolStd | Mode::ToolRustc => {}
}

// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
Expand Down

0 comments on commit 676455f

Please sign in to comment.