about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2024-08-31 18:02:01 +0200
committerThe 8472 <git@infinite-source.de>2024-08-31 23:56:45 +0200
commitc218c754568351e44a8c8f07702c090c6c2ae945 (patch)
tree3195ba70170b58640c8a18c06352396a43967705
parentdf20808f4dc7828c0f78cd17c3bd9edbd499d6f3 (diff)
downloadrust-c218c754568351e44a8c8f07702c090c6c2ae945.tar.gz
rust-c218c754568351e44a8c8f07702c090c6c2ae945.zip
exclude tools with deps that have size asserts
-rw-r--r--src/bootstrap/src/core/builder.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs
index 3043fd09ed1..a4474046fb8 100644
--- a/src/bootstrap/src/core/builder.rs
+++ b/src/bootstrap/src/core/builder.rs
@@ -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");
         }