File tree 2 files changed +3
-2
lines changed
compiler/rustc_codegen_cranelift/build_system
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,12 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
109
109
110
110
SYSROOT_TESTS . clean ( & runner. dirs ) ;
111
111
112
+ let mut target_compiler = runner. target_compiler . clone ( ) ;
112
113
// coretests and alloctests produce a bunch of warnings. When running
113
114
// in rust's CI warnings are denied, so we have to override that here.
114
- let mut target_compiler = runner. target_compiler . clone ( ) ;
115
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 ( ) ] ) ;
116
118
117
119
if runner. is_native {
118
120
let mut test_cmd = SYSROOT_TESTS . test ( & target_compiler, & runner. dirs ) ;
Original file line number Diff line number Diff line change @@ -36,5 +36,4 @@ check-cfg = [
36
36
' cfg(no_global_oom_handling)' ,
37
37
' cfg(no_rc)' ,
38
38
' cfg(no_sync)' ,
39
- ' cfg(randomized_layouts)' ,
40
39
]
You can’t perform that action at this time.
0 commit comments