Skip to content

Commit 5dc2b2e

Browse files
committed
Disable incr CGU merging
1 parent 53bb74b commit 5dc2b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_monomorphize/src/partitioning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ where
164164
// Merge until we don't exceed the max CGU count.
165165
// `merge_codegen_units` is responsible for updating the CGU size
166166
// estimates.
167-
{
167+
if tcx.sess.opts.incremental.is_none() {
168168
let _prof_timer = tcx.prof.generic_activity("cgu_partitioning_merge_cgus");
169169
merge_codegen_units(cx, &mut codegen_units);
170170
debug_dump(tcx, "MERGE", &codegen_units);

0 commit comments

Comments
 (0)