Skip to content

Commit ee280a5

Browse files
committed
Fat LTO always produces a single object file, so -Zcombine-cgu has no effect
1 parent 7fd78df commit ee280a5

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+3
-1
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,9 @@ fn execute_fat_lto_work_item<B: ExtraBackendMethods>(
10091009
module_config: &ModuleConfig,
10101010
) -> Result<WorkItemResult<B>, FatalError> {
10111011
B::optimize_fat(cgcx, &mut module)?;
1012-
finish_intra_module_work(cgcx, module, module_config)
1012+
1013+
let module = B::codegen(cgcx, module, module_config)?;
1014+
Ok(WorkItemResult::Finished(module))
10131015
}
10141016

10151017
fn execute_thin_lto_work_item<B: ExtraBackendMethods>(

0 commit comments

Comments
 (0)