File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -221,10 +221,8 @@ impl<'a> GccLinker<'a> {
221221 let opt_level = match self . sess . opts . optimize {
222222 config:: OptLevel :: No => "O0" ,
223223 config:: OptLevel :: Less => "O1" ,
224- config:: OptLevel :: Default => "O2" ,
224+ config:: OptLevel :: Default | config :: OptLevel :: Size | config :: OptLevel :: SizeMin => "O2" ,
225225 config:: OptLevel :: Aggressive => "O3" ,
226- config:: OptLevel :: Size => "Os" ,
227- config:: OptLevel :: SizeMin => "Oz" ,
228226 } ;
229227
230228 self . linker_arg ( & format ! ( "-plugin-opt={}" , opt_level) ) ;
Original file line number Diff line number Diff line change 1+ // compile-flags: -Clinker-plugin-lto -Copt-level=s
2+ // build-pass
3+
4+ #![ crate_type = "rlib" ]
5+
6+ pub fn foo ( ) { }
Original file line number Diff line number Diff line change 1+ // compile-flags: -Clinker-plugin-lto -Copt-level=z
2+ // build-pass
3+
4+ #![ crate_type = "rlib" ]
5+
6+ pub fn foo ( ) { }
You can’t perform that action at this time.
0 commit comments