authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-08-04 09:37:18+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-08-04 09:47:56+01:00
log422e8d476c4f407abe2915932fc01012682051fe
treeec9e9fa787dea85579bd7f3359181416bd0bf474
parent32a069f909a34b22a2049dca39ef5a1965cba21b
signaturelock-open Commit is signed but in an unrecognized format.

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 files changed, 3 insertions(+), 0 deletions(-)

lib/compiler/build_runner.zig+3
......@@ -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