zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a3fadd281309cd19924f4cd4007919a42cc5e1da (tree)
parent aaf95ce849e7ae22a838aad5eac3dd5754a925cd
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon,  5 Dec 2022 16:31:24 -0700

stage2: revert change to handling of --color on

This change has been extracted to #13786 and can be solved separately
than this branch.

Diffstat:
Msrc/Compilation.zig | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git 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);