We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb2b3d0 commit e3a8d9cCopy full SHA for e3a8d9c
build_system/tests.rs
@@ -109,10 +109,12 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
109
110
SYSROOT_TESTS.clean(&runner.dirs);
111
112
+ let mut target_compiler = runner.target_compiler.clone();
113
// coretests and alloctests produce a bunch of warnings. When running
114
// in rust's CI warnings are denied, so we have to override that here.
- let mut target_compiler = runner.target_compiler.clone();
115
target_compiler.rustflags.push("--cap-lints=allow".to_owned());
116
+ // The standard library may have been compiled with -Zrandomize-layout.
117
+ target_compiler.rustflags.extend(["--cfg".to_owned(), "randomized_layouts".to_owned()]);
118
119
if runner.is_native {
120
let mut test_cmd = SYSROOT_TESTS.test(&target_compiler, &runner.dirs);
0 commit comments