authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-01-10 20:12:37-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-01-15 15:11:36-08:00
log0dd0ebb6e2b9030b30a4333b3e79b88500fa6aff
tree543a443bba43b571776e0b374273fc74d7df66db
parent220af3f446b9d02aeb3e3553c4744c30aaf4e2b8

frontend: don't increment remaining_prelink_tasks for windows implibs

yet because they aren't hooked up to the new linker API

1 files changed, 1 insertions(+), 1 deletions(-)

src/Compilation.zig+1-1
......@@ -1884,7 +1884,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
18841884 for (0..count) |i| {
18851885 try comp.queueJob(.{ .windows_import_lib = i });
18861886 }
1887 comp.remaining_prelink_tasks += @intCast(count);
18881887 }
18891888 if (comp.wantBuildLibUnwindFromSource()) {
18901889 try comp.queueJob(.{ .libunwind = {} });
......@@ -4003,6 +4002,7 @@ fn dispatchCodegenTask(comp: *Compilation, tid: usize, link_task: link.Task) voi
40034002 if (comp.separateCodegenThreadOk()) {
40044003 comp.queueLinkTasks(&.{link_task});
40054004 } else {
4005 assert(comp.remaining_prelink_tasks == 0);
40064006 link.doTask(comp, tid, link_task);
40074007 }
40084008}