mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Don't attempt to use io from thin air
This commit is contained in:
parent
0d18eda1d6
commit
237c5429b0
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ fn log(
|
||||||
} else if (builtin.mode != .ReleaseSmall) {
|
} else if (builtin.mode != .ReleaseSmall) {
|
||||||
const held = std.debug.getStderrMutex().acquire();
|
const held = std.debug.getStderrMutex().acquire();
|
||||||
defer held.release();
|
defer held.release();
|
||||||
const stderr = io.getStdErr().writer();
|
const stderr = std.io.getStdErr().writer();
|
||||||
nosuspend stderr.print(format, args) catch return;
|
nosuspend stderr.print(format, args) catch return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue