Skip to content

Commit 422e8d4

Browse files
committed
build runner: fix FTBFS on targets without --watch implementation
This was a regression in #24588. I have verified that this patch works by confirming that with the downstream patches SerenityOS apply to the Zig source tree (sans the one working around this regression), I can build the build runner for SerenityOS. Resolves: #24682
1 parent 32a069f commit 422e8d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/compiler/build_runner.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ pub fn main() !void {
502502
};
503503
}
504504

505+
// Comptime-known guard to prevent including the logic below when `!Watch.have_impl`.
506+
if (!Watch.have_impl) unreachable;
507+
505508
try w.update(gpa, run.step_stack.keys());
506509

507510
// Wait until a file system notification arrives. Read all such events

0 commit comments

Comments
 (0)