From 18cc65171348829fbb4e639731c603633a225000 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 17 Jan 2023 21:57:18 +1100 Subject: [PATCH] Enable `mir-opt-level=4` for release (#718) Signed-off-by: Jiahao XU --- justfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/justfile b/justfile index d0d45577..b54bbbde 100644 --- a/justfile +++ b/justfile @@ -77,9 +77,7 @@ cargo-split-debuginfo := if cargo-buildstd != "" { " --config='profile.release.s win-arm64-ring16 := if target == "aarch64-pc-windows-msvc" { " --config='patch.crates-io.ring.git=\"https://github.com/awakecoding/ring\"' --config='patch.crates-io.ring.branch=\"0.16.20_alpha\"'" } else { "" } # MIR optimisation level (defaults to 2, bring it up to 4 for release builds) -# disabled for now, as it ICEs -# https://github.com/rust-lang/rust/issues/106141 -rustc-miropt := "" #if for-release != "" { " -Z mir-opt-level=4" } else { "" } +rustc-miropt := if for-release != "" { " -Z mir-opt-level=4" } else { "" } # ICF: link-time identical code folding # disabled for now, as it requires the gold linker