diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-08-04 16:23:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-04 16:23:58 +0100 |
| commit | 9b509dad30a9e7fa6f59e656c0df2b7e265b400a (patch) | |
| tree | 2bbfa87fa2deb1fe8d8cf12abe8f3b05d4f03c6f /lib/compiler | |
| parent | 70c6a9fba67a10838cfbbc7554cfa164e9b06462 (diff) | |
| parent | 422e8d476c4f407abe2915932fc01012682051fe (diff) | |
| download | zig-9b509dad30a9e7fa6f59e656c0df2b7e265b400a.tar.gz zig-9b509dad30a9e7fa6f59e656c0df2b7e265b400a.zip | |
Merge pull request #24689 from mlugg/build-no-watch-regression
build runner: fix FTBFS on targets without `--watch` implementation
Diffstat (limited to 'lib/compiler')
| -rw-r--r-- | lib/compiler/build_runner.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compiler/build_runner.zig b/lib/compiler/build_runner.zig index e97b7aa313..f1a0caf47c 100644 --- a/lib/compiler/build_runner.zig +++ b/lib/compiler/build_runner.zig @@ -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 |
