aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-05 16:31:24 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-12-06 12:15:05 -0700
commita3fadd281309cd19924f4cd4007919a42cc5e1da (patch)
tree832274c510efa2aafcaf1f891a06dcde106caf21
parentaaf95ce849e7ae22a838aad5eac3dd5754a925cd (diff)
downloadzig-a3fadd281309cd19924f4cd4007919a42cc5e1da.tar.gz
zig-a3fadd281309cd19924f4cd4007919a42cc5e1da.zip
stage2: revert change to handling of --color on
This change has been extracted to #13786 and can be solved separately than this branch.
-rw-r--r--src/Compilation.zig11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 42b64f979f..e3c45678e2 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -2380,16 +2380,7 @@ pub fn update(comp: *Compilation) !void {
var progress: std.Progress = .{ .dont_print_on_dumb = true };
const main_progress_node = progress.start("", 0);
defer main_progress_node.end();
- switch (comp.color) {
- .off => {
- progress.terminal = null;
- },
- .on => {
- progress.terminal = std.io.getStdErr();
- progress.supports_ansi_escape_codes = true;
- },
- .auto => {},
- }
+ if (comp.color == .off) progress.terminal = null;
try comp.performAllTheWork(main_progress_node);