summary refs log tree commit diff
path: root/config.example.toml
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-05 03:47:39 +0200
committerGitHub <noreply@github.com>2024-09-05 03:47:39 +0200
commit8a60d0a5ec0d0a1a88ae17ed4f19f61c7f78ef9d (patch)
treece5469ab730d200a826329ba01ec1b4b4f1afe3b /config.example.toml
parent009e73825af0e59ad4fc603562e038b3dbd6593a (diff)
parentc218c754568351e44a8c8f07702c090c6c2ae945 (diff)
downloadrust-8a60d0a5ec0d0a1a88ae17ed4f19f61c7f78ef9d.tar.gz
rust-8a60d0a5ec0d0a1a88ae17ed4f19f61c7f78ef9d.zip
Rollup merge of #101339 - the8472:ci-randomize-debug, r=Mark-Simulacrum
enable -Zrandomize-layout in debug CI builds

This builds rustc/libs/tools with `-Zrandomize-layout` on *-debug CI runners.

Only a handful of tests and asserts break with that enabled, which is promising. One test was fixable, the rest is dealt with by disabling them through new cargo features or compiletest directives.

The config.toml flag `rust.randomize-layout` defaults to false, so it has to be explicitly enabled for now.
Diffstat (limited to 'config.example.toml')
-rw-r--r--config.example.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.example.toml b/config.example.toml
index b967d5d9fe8..13f76933b16 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -519,6 +519,9 @@
 # are disabled statically" because `max_level_info` is enabled, set this value to `true`.
 #debug-logging = rust.debug-assertions (boolean)
 
+# Whether or not to build rustc, tools and the libraries with randomized type layout
+#randomize-layout = false
+
 # Whether or not overflow checks are enabled for the compiler and standard
 # library.
 #