aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-01-10 20:12:37 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-01-15 15:11:36 -0800
commit0dd0ebb6e2b9030b30a4333b3e79b88500fa6aff (patch)
tree543a443bba43b571776e0b374273fc74d7df66db /src
parent220af3f446b9d02aeb3e3553c4744c30aaf4e2b8 (diff)
downloadzig-0dd0ebb6e2b9030b30a4333b3e79b88500fa6aff.tar.gz
zig-0dd0ebb6e2b9030b30a4333b3e79b88500fa6aff.zip
frontend: don't increment remaining_prelink_tasks for windows implibs
yet because they aren't hooked up to the new linker API
Diffstat (limited to 'src')
-rw-r--r--src/Compilation.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index ba20c384d6..732873e5b9 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -1884,7 +1884,6 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
for (0..count) |i| {
try comp.queueJob(.{ .windows_import_lib = i });
}
- comp.remaining_prelink_tasks += @intCast(count);
}
if (comp.wantBuildLibUnwindFromSource()) {
try comp.queueJob(.{ .libunwind = {} });
@@ -4003,6 +4002,7 @@ fn dispatchCodegenTask(comp: *Compilation, tid: usize, link_task: link.Task) voi
if (comp.separateCodegenThreadOk()) {
comp.queueLinkTasks(&.{link_task});
} else {
+ assert(comp.remaining_prelink_tasks == 0);
link.doTask(comp, tid, link_task);
}
}