std.Build.Watch: not supported on haiku

This commit is contained in:
Elaine Gibson 2025-05-31 03:14:01 +01:00
parent 2139eb75f9
commit 2cfa0f567d
2 changed files with 2 additions and 2 deletions

View file

@ -415,7 +415,7 @@ pub fn main() !void {
else => return err,
};
var w = if (watch) try Watch.init() else undefined;
var w: Watch = if (watch and Watch.have_impl) try Watch.init() else undefined;
try run.thread_pool.init(thread_pool_options);
defer run.thread_pool.deinit();

View file

@ -600,7 +600,7 @@ const Os = switch (builtin.os.tag) {
};
}
},
.dragonfly, .freebsd, .netbsd, .openbsd, .ios, .macos, .tvos, .visionos, .watchos, .haiku => struct {
.dragonfly, .freebsd, .netbsd, .openbsd, .ios, .macos, .tvos, .visionos, .watchos => struct {
const posix = std.posix;
kq_fd: i32,