Skip to content

Commit

Permalink
exclude tools with deps that have size asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
the8472 committed Aug 31, 2024
1 parent df20808 commit c218c75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bootstrap/src/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,12 @@ impl<'a> Builder<'a> {
rustflags.arg("-Csymbol-mangling-version=legacy");
}

if self.config.rust_randomize_layout {
// FIXME: the following components don't build with `-Zrandomize-layout` yet:
// - wasm-component-ld, due to the `wast`crate
// - rust-analyzer, due to the rowan crate
// so we exclude entire categories of steps here due to lack of fine-grained control over
// rustflags.
if self.config.rust_randomize_layout && mode != Mode::ToolStd && mode != Mode::ToolRustc {
rustflags.arg("-Zrandomize-layout");
}

Expand Down

0 comments on commit c218c75

Please sign in to comment.