From 82344d475ba84aaf19cef051680f0297eb764b08 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Sun, 8 Mar 2026 09:49:25 +0100 Subject: [PATCH] refactor: enable linux background read thread by default --- build.zig | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build.zig b/build.zig index 4c4d36a..9e7b401 100644 --- a/build.zig +++ b/build.zig @@ -12,13 +12,11 @@ pub fn build(b: *std.Build) void { ) orelse false; } else false; - const linux_read_thread = if (target.result.os.tag == .linux) blk: { - break :blk b.option( - bool, - "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", - ) orelse false; - } else false; + const linux_read_thread = b.option( + bool, + "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", + ) orelse true; const options = b.addOptions(); options.addOption(bool, "use_fsevents", use_fsevents);