diff --git a/lib/compiler/build_runner.zig b/lib/compiler/build_runner.zig index e97b7aa313dfa65f3cc3d9b56affb5e0dc44c93c..f1a0caf47c801f85765c1ef8834c933dfc49c802 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