Skip to content

Commit b8795b4

Browse files
authored
Merge pull request #21795 from ziglang/kqueue-watch
Build Runner: Implement File System Watching for kqueue
2 parents 03d0e29 + cc671a2 commit b8795b4

File tree

2 files changed

+319
-94
lines changed

2 files changed

+319
-94
lines changed

lib/compiler/build_runner.zig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,7 @@ pub fn main() !void {
447447

448448
if (!watch) return cleanExit();
449449

450-
switch (builtin.os.tag) {
451-
.linux, .windows => {},
452-
else => fatal("--watch not yet implemented for {s}", .{@tagName(builtin.os.tag)}),
453-
}
450+
if (!Watch.have_impl) fatal("--watch not yet implemented for {s}", .{@tagName(builtin.os.tag)});
454451

455452
try w.update(gpa, run.step_stack.keys());
456453

0 commit comments

Comments
 (0)