exclude tools with deps that have size asserts · rust-lang/rust@c218c75 (original) (raw)

Original file line number Diff line number Diff line change
@@ -1614,7 +1614,12 @@ impl<'a> Builder<'a> {
1614 1614 rustflags.arg("-Csymbol-mangling-version=legacy");
1615 1615 }
1616 1616
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 {
1618 1623 rustflags.arg("-Zrandomize-layout");
1619 1624 }
1620 1625