refactor: enable linux background read thread by default

This commit is contained in:
CJ van den Berg 2026-03-08 09:49:25 +01:00
parent 5502f8940a
commit 82344d475b
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -12,13 +12,11 @@ pub fn build(b: *std.Build) void {
) orelse false; ) orelse false;
} else false; } else false;
const linux_read_thread = if (target.result.os.tag == .linux) blk: { const linux_read_thread = b.option(
break :blk b.option( bool,
bool, "linux_read_thread",
"linux_read_thread", "Use a background thread on Linux (like macOS/Windows) instead of requiring the caller to drive the event loop via poll_fd/handle_read_ready",
"Use a background thread on Linux (like macOS/Windows) instead of requiring the caller to drive the event loop via poll_fd/handle_read_ready", ) orelse true;
) orelse false;
} else false;
const options = b.addOptions(); const options = b.addOptions();
options.addOption(bool, "use_fsevents", use_fsevents); options.addOption(bool, "use_fsevents", use_fsevents);