Commit a3fadd2813

Andrew Kelley <andrew@ziglang.org>
2022-12-06 00:31:24
stage2: revert change to handling of --color on
This change has been extracted to #13786 and can be solved separately than this branch.
1 parent aaf95ce
Changed files (1)
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);