diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-25 21:49:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-25 21:49:25 -0700 |
| commit | fc4b7c968afa6fa0780a011f3c8cfeaea38b7b98 (patch) | |
| tree | 8db85e95c48b70a9bd7ba57a360f4e95c6137967 /lib/compiler | |
| parent | 66e49d93b7b3815a5213b39d19b3c5f39c21ffc3 (diff) | |
| parent | b22b9ebfe055f1a358447311605be8afa823287a (diff) | |
| download | zig-fc4b7c968afa6fa0780a011f3c8cfeaea38b7b98.tar.gz zig-fc4b7c968afa6fa0780a011f3c8cfeaea38b7b98.zip | |
Merge pull request #24564 from ziglang/terminal-progress-bar
std.Progress: support progress bar escape codes
Diffstat (limited to 'lib/compiler')
| -rw-r--r-- | lib/compiler/build_runner.zig | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/compiler/build_runner.zig b/lib/compiler/build_runner.zig index 7402a4c66d..6b7266ee71 100644 --- a/lib/compiler/build_runner.zig +++ b/lib/compiler/build_runner.zig @@ -696,8 +696,11 @@ fn runStepNames( .failures, .none => true, else => false, }; - if (failure_count == 0 and failures_only) { - return run.cleanExit(); + if (failure_count == 0) { + std.Progress.setStatus(.success); + if (failures_only) return run.cleanExit(); + } else { + std.Progress.setStatus(.failure); } const ttyconf = run.ttyconf; @@ -1149,6 +1152,7 @@ fn workerMakeOneStep( } else |err| switch (err) { error.MakeFailed => { @atomicStore(Step.State, &s.state, .failure, .seq_cst); + std.Progress.setStatus(.failure_working); break :handle_result; }, error.MakeSkipped => @atomicStore(Step.State, &s.state, .skipped, .seq_cst), |
