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
This commit is contained in:
@@ -1939,14 +1939,14 @@ impl<'a> Linker for LlbcLinker<'a> {
|
||||
}
|
||||
|
||||
fn optimize(&mut self) {
|
||||
match self.sess.opts.optimize {
|
||||
self.link_arg(match self.sess.opts.optimize {
|
||||
OptLevel::No => "-O0",
|
||||
OptLevel::Less => "-O1",
|
||||
OptLevel::More => "-O2",
|
||||
OptLevel::Aggressive => "-O3",
|
||||
OptLevel::Size => "-Os",
|
||||
OptLevel::SizeMin => "-Oz",
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
fn full_relro(&mut self) {}
|
||||
|
||||
Reference in New Issue
Block a user