about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2022-09-02 20:17:20 +0200
committerThe 8472 <git@infinite-source.de>2024-08-31 23:56:45 +0200
commit5bf8eeb9f34a738ebf49328c08d40951374cce18 (patch)
tree2adea59c80689ee29e9022e4290e66919f118402 /src
parentf3bc08adbd120a12571373b982b39049cbbed93f (diff)
downloadrust-5bf8eeb9f34a738ebf49328c08d40951374cce18.tar.gz
rust-5bf8eeb9f34a738ebf49328c08d40951374cce18.zip
disable size asserts in the compiler when randomizing layouts
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
index 268392c5fb1..dc852e894a0 100644
--- a/src/bootstrap/src/lib.rs
+++ b/src/bootstrap/src/lib.rs
@@ -678,6 +678,9 @@ impl Build {
         if self.config.rustc_parallel {
             features.push("rustc_use_parallel_compiler");
         }
+        if self.config.rust_randomize_layout {
+            features.push("rustc_randomized_layouts");
+        }
 
         // If debug logging is on, then we want the default for tracing:
         // https://github.com/tokio-rs/tracing/blob/3dd5c03d907afdf2c39444a29931833335171554/tracing/src/level_filters.rs#L26