mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue