Skip to content

Commit

Permalink
Unrolled build for rust-lang#136576
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#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
  • Loading branch information
rust-timer authored Feb 26, 2025
2 parents a46c755 + 123062b commit 900e080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_ssa/src/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit 900e080

Please sign in to comment.