mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
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
This commit is contained in:
parent
32a069f909
commit
422e8d476c
1 changed files with 3 additions and 0 deletions
|
|
@ -502,6 +502,9 @@ pub fn main() !void {
|
|||
};
|
||||
}
|
||||
|
||||
// Comptime-known guard to prevent including the logic below when `!Watch.have_impl`.
|
||||
if (!Watch.have_impl) unreachable;
|
||||
|
||||
try w.update(gpa, run.step_stack.keys());
|
||||
|
||||
// Wait until a file system notification arrives. Read all such events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue