We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a21fb3f commit 34e658eCopy full SHA for 34e658e
src/librustc_trans/back/write.rs
@@ -1356,6 +1356,10 @@ fn execute_work_item(cgcx: &CodegenContext,
1356
// settings.
1357
let needs_lto = needs_lto && mtrans.kind != ModuleKind::Metadata;
1358
1359
+ // Don't run LTO passes when cross-lang LTO is enabled. The linker
1360
+ // will do that for us in this case.
1361
+ let needs_lto = needs_lto && !cgcx.opts.debugging_opts.cross_lang_lto;
1362
+
1363
if needs_lto {
1364
Ok(WorkItemResult::NeedsLTO(mtrans))
1365
} else {
0 commit comments