summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/lib.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-11-02 14:53:30 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-11-02 14:53:30 +0000
commit60f0cd87e80bc227595d4c42860e3c7ec94ca35f (patch)
treea93a94318886f05984ddd24ee7e41354943e7911 /compiler/rustc_codegen_cranelift/src/lib.rs
parent588a4203508ed7c76750c96b482641261630ed36 (diff)
parent5b1246bb4bed72fd0bb8fa497d8e5ed2c7f3515c (diff)
downloadrust-60f0cd87e80bc227595d4c42860e3c7ec94ca35f.tar.gz
rust-60f0cd87e80bc227595d4c42860e3c7ec94ca35f.zip
Merge commit '5b1246bb4bed72fd0bb8fa497d8e5ed2c7f3515c' into sync_cg_clif-2024-11-02
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/lib.rs')
-rw-r--r--compiler/rustc_codegen_cranelift/src/lib.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs
index fc3bd0abd78..aba0c28f6b8 100644
--- a/compiler/rustc_codegen_cranelift/src/lib.rs
+++ b/compiler/rustc_codegen_cranelift/src/lib.rs
@@ -302,8 +302,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();
         }
     }