pass optimization level to llvm-bitcode-linker
This commit is contained in:
parent
a18bd8acfc
commit
123062bfd9
1 changed files with 2 additions and 2 deletions
|
@ -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) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue