File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/librustc_codegen_llvm/back Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -552,7 +552,8 @@ unsafe fn optimize(cgcx: &CodegenContext,
552
552
llvm:: LLVMRustAddAnalysisPasses ( tm, fpm, llmod) ;
553
553
llvm:: LLVMRustAddAnalysisPasses ( tm, mpm, llmod) ;
554
554
let opt_level = config. opt_level . unwrap_or ( llvm:: CodeGenOptLevel :: None ) ;
555
- let prepare_for_thin_lto = cgcx. lto == Lto :: Thin || cgcx. lto == Lto :: ThinLocal ;
555
+ let prepare_for_thin_lto = cgcx. lto == Lto :: Thin || cgcx. lto == Lto :: ThinLocal ||
556
+ ( cgcx. lto != Lto :: Fat && cgcx. opts . debugging_opts . cross_lang_lto . enabled ( ) ) ;
556
557
have_name_anon_globals_pass = have_name_anon_globals_pass || prepare_for_thin_lto;
557
558
if using_thin_buffers && !prepare_for_thin_lto {
558
559
assert ! ( addpass( "name-anon-globals" ) ) ;
You can’t perform that action at this time.
0 commit comments