refactor: select fsevents by default if it is enabled in build

This commit is contained in:
CJ van den Berg 2026-03-09 11:19:32 +01:00
parent b82c86acc9
commit 0813294652
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -18,7 +18,8 @@ pub const Variant = switch (builtin.os.tag) {
pub const default_variant: Variant = switch (builtin.os.tag) {
.linux => .threaded,
.macos, .freebsd, .openbsd, .netbsd, .dragonfly => .kqueue,
.macos => if (build_options.macos_fsevents) .fsevents else .kqueue,
.freebsd, .openbsd, .netbsd, .dragonfly => .kqueue,
.windows => .windows,
else => @compileError("unsupported OS"),
};