commit 978fe68a65be2b5a1551ab5eafdcdbfa467ba891 (tree)
parent 1ccbc6ca2066bec7a8b723598a9a17d70da66bc7
Author: mlugg <mlugg@mlugg.co.uk>
Date: Wed, 14 Aug 2024 02:44:05 +0100
Compilation: actually do codegen on non-initial updates
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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();