mirror of
https://github.com/ziglang/zig.git
synced 2025-12-26 16:13:07 +00:00
stage2: revert change to handling of --color on
This change has been extracted to #13786 and can be solved separately than this branch.
This commit is contained in:
parent
aaf95ce849
commit
a3fadd2813
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user