Skip to content

Commit b80e439

Browse files
committed
fix single-threaded builds
1 parent 0156d68 commit b80e439

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/std/Io/Threaded.zig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ fn async(
453453
start: *const fn (context: *const anyopaque, result: *anyopaque) void,
454454
) ?*Io.AnyFuture {
455455
const t: *Threaded = @ptrCast(@alignCast(userdata));
456-
if (t.cpu_count == 1) {
456+
if (t.cpu_count == 1 or builtin.single_threaded) {
457457
start(context.ptr, result.ptr);
458458
return null;
459459
}

0 commit comments

Comments
 (0)