mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 21:38:33 +00:00
build runner: fix build summary painting over CLI progress
by obtaining the stderr lock when printing the build summary
This commit is contained in:
parent
001ff7b3b2
commit
e6b6a728b3
@ -682,9 +682,12 @@ fn runStepNames(
|
||||
}
|
||||
|
||||
const ttyconf = run.ttyconf;
|
||||
const stderr = run.stderr;
|
||||
|
||||
if (run.summary != .none) {
|
||||
std.debug.lockStdErr();
|
||||
defer std.debug.unlockStdErr();
|
||||
const stderr = run.stderr;
|
||||
|
||||
const total_count = success_count + failure_count + pending_count + skipped_count;
|
||||
ttyconf.setColor(stderr, .cyan) catch {};
|
||||
stderr.writeAll("Build Summary:") catch {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user