| ... | @@ -1884,7 +1884,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil | ... | @@ -1884,7 +1884,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil |
| 1884 | for (0..count) |i| { | 1884 | for (0..count) |i| { |
| 1885 | try comp.queueJob(.{ .windows_import_lib = i }); | 1885 | try comp.queueJob(.{ .windows_import_lib = i }); |
| 1886 | } | 1886 | } |
| 1887 | comp.remaining_prelink_tasks += @intCast(count); | | |
| 1888 | } | 1887 | } |
| 1889 | if (comp.wantBuildLibUnwindFromSource()) { | 1888 | if (comp.wantBuildLibUnwindFromSource()) { |
| 1890 | try comp.queueJob(.{ .libunwind = {} }); | 1889 | try comp.queueJob(.{ .libunwind = {} }); |
| ... | @@ -4003,6 +4002,7 @@ fn dispatchCodegenTask(comp: *Compilation, tid: usize, link_task: link.Task) voi | ... | @@ -4003,6 +4002,7 @@ fn dispatchCodegenTask(comp: *Compilation, tid: usize, link_task: link.Task) voi |
| 4003 | if (comp.separateCodegenThreadOk()) { | 4002 | if (comp.separateCodegenThreadOk()) { |
| 4004 | comp.queueLinkTasks(&.{link_task}); | 4003 | comp.queueLinkTasks(&.{link_task}); |
| 4005 | } else { | 4004 | } else { |
| | 4005 | assert(comp.remaining_prelink_tasks == 0); |
| 4006 | link.doTask(comp, tid, link_task); | 4006 | link.doTask(comp, tid, link_task); |
| 4007 | } | 4007 | } |
| 4008 | } | 4008 | } |