Skip to content

Commit c218c75

Browse files
committed
exclude tools with deps that have size asserts
1 parent df20808 commit c218c75

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bootstrap/src/core/builder.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,12 @@ impl<'a> Builder<'a> {
16141614
rustflags.arg("-Csymbol-mangling-version=legacy");
16151615
}
16161616

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

0 commit comments

Comments
 (0)