diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-08-14 02:44:05 +0100 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-08-17 18:50:10 -0400 |
| commit | 978fe68a65be2b5a1551ab5eafdcdbfa467ba891 (patch) | |
| tree | a015aa64b3e2afa43be18f9ac2ed669c750f2789 /src | |
| parent | 1ccbc6ca2066bec7a8b723598a9a17d70da66bc7 (diff) | |
| download | zig-978fe68a65be2b5a1551ab5eafdcdbfa467ba891.tar.gz zig-978fe68a65be2b5a1551ab5eafdcdbfa467ba891.zip | |
Compilation: actually do codegen on non-initial updates
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compilation.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 8787d679e6..af98fc6f6e 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3685,7 +3685,10 @@ fn performAllTheWorkInner( zcu.codegen_prog_node = main_progress_node.start("Code Generation", 0); } - if (!InternPool.single_threaded) comp.thread_pool.spawnWgId(&work_queue_wait_group, codegenThread, .{comp}); + if (!InternPool.single_threaded) { + comp.codegen_work.done = false; // may be `true` from a prior update + comp.thread_pool.spawnWgId(&work_queue_wait_group, codegenThread, .{comp}); + } defer if (!InternPool.single_threaded) { { comp.codegen_work.mutex.lock(); |
