exclude tools with deps that have size asserts

This commit is contained in:
The 8472 2024-08-31 18:02:01 +02:00
parent df20808f4d
commit c218c75456

View File

@ -1614,7 +1614,12 @@ fn cargo(
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");
}