Skip to content

Commit effa8c4

Browse files
committed
1 parent 1e72981 commit effa8c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_system/build_sysroot.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ fn build_clif_sysroot_for_triple(
240240
rustflags
241241
.push_str(&format!(" --sysroot={}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
242242
if channel == "release" {
243-
rustflags.push_str(" -Zmir-opt-level=3");
243+
// FIXME switch back to 3 once https://github.com/rust-lang/rust/issues/108166 is fixed
244+
rustflags.push_str(" -Zmir-opt-level=2");
244245
}
245246
compiler.rustflags += &rustflags;
246247
let mut build_cmd = STANDARD_LIBRARY.build(&compiler, dirs);

0 commit comments

Comments
 (0)