refactor: select fsevents by default if it is enabled in build
This commit is contained in:
parent
b82c86acc9
commit
0813294652
1 changed files with 2 additions and 1 deletions
|
|
@ -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"),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue