build runner: fix build summary painting over CLI progress

by obtaining the stderr lock when printing the build summary
This commit is contained in:
Andrew Kelley 2024-07-09 20:06:56 -07:00
parent 001ff7b3b2
commit e6b6a728b3

View File

@ -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 {};