about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-10-03 12:36:16 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-10-03 12:36:16 +0000
commit0ba084514ad1229ccba0d4cd45c4b55f8de3d092 (patch)
treeb90f76913790f662efd7276f1f2595679c894f6c
parent0f1284cea736c11d9df3e952947a3d4d5a6a00ff (diff)
downloadrust-0ba084514ad1229ccba0d4cd45c4b55f8de3d092.tar.gz
rust-0ba084514ad1229ccba0d4cd45c4b55f8de3d092.zip
Also enable Cranelift optimizations with -Copt-level=1/2
-rw-r--r--src/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f6b7981395a..1cc2eebc47c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -298,8 +298,11 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Arc<dyn TargetIs
         OptLevel::No => {
             flags_builder.set("opt_level", "none").unwrap();
         }
-        OptLevel::Less | OptLevel::Default => {}
-        OptLevel::Size | OptLevel::SizeMin | OptLevel::Aggressive => {
+        OptLevel::Less
+        | OptLevel::Default
+        | OptLevel::Size
+        | OptLevel::SizeMin
+        | OptLevel::Aggressive => {
             flags_builder.set("opt_level", "speed_and_size").unwrap();
         }
     }