We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df20808 commit c218c75Copy full SHA for c218c75
src/bootstrap/src/core/builder.rs
@@ -1614,7 +1614,12 @@ impl<'a> Builder<'a> {
1614
rustflags.arg("-Csymbol-mangling-version=legacy");
1615
}
1616
1617
- if self.config.rust_randomize_layout {
+ // 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 {
1623
rustflags.arg("-Zrandomize-layout");
1624
1625
0 commit comments