diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-12-05 16:31:24 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-12-06 12:15:05 -0700 |
| commit | a3fadd281309cd19924f4cd4007919a42cc5e1da (patch) | |
| tree | 832274c510efa2aafcaf1f891a06dcde106caf21 | |
| parent | aaf95ce849e7ae22a838aad5eac3dd5754a925cd (diff) | |
| download | zig-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.zig | 11 |
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); |
