zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ff883dd6ce910e2a0aa301e1ee84d93f53cf8765 (tree)
parent 8eaebf5939491b005e392698ec6e890ebaf0f86b
Author: Loris Cro <kappaloris@gmail.com>
Date:   Fri,  7 Nov 2025 12:42:51 +0100

fix single-threaded builds

Diffstat:
Mlib/std/Io/Threaded.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig @@ -490,7 +490,7 @@ fn async( start: *const fn (context: *const anyopaque, result: *anyopaque) void, ) ?*Io.AnyFuture { const t: *Threaded = @ptrCast(@alignCast(userdata)); - if (t.cpu_count == 1) { + if (t.cpu_count == 1 or builtin.single_threaded) { start(context.ptr, result.ptr); return null; }