Skip to content

Commit 1cdd386

Browse files
authored
Rollup merge of #136576 - usamoi:pass-more-llbc, r=fmease
pass optimization level to llvm-bitcode-linker optimization level is not passed to llbc, which should be a mistake
2 parents cb06d12 + 123062b commit 1cdd386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1939,14 +1939,14 @@ impl<'a> Linker for LlbcLinker<'a> {
19391939
}
19401940

19411941
fn optimize(&mut self) {
1942-
match self.sess.opts.optimize {
1942+
self.link_arg(match self.sess.opts.optimize {
19431943
OptLevel::No => "-O0",
19441944
OptLevel::Less => "-O1",
19451945
OptLevel::More => "-O2",
19461946
OptLevel::Aggressive => "-O3",
19471947
OptLevel::Size => "-Os",
19481948
OptLevel::SizeMin => "-Oz",
1949-
};
1949+
});
19501950
}
19511951

19521952
fn full_relro(&mut self) {}

0 commit comments

Comments
 (0)