We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67712d7 + d326beb commit 0a7f15eCopy full SHA for 0a7f15e
src/bootstrap/compile.rs
@@ -1167,7 +1167,9 @@ pub fn stream_cargo(
1167
cargo.arg("--message-format").arg("json")
1168
.stdout(Stdio::piped());
1169
1170
- if stderr_isatty() && build.ci_env == CiEnv::None {
+ if stderr_isatty() && build.ci_env == CiEnv::None &&
1171
+ // if the terminal is reported as dumb, then we don't want to enable color for rustc
1172
+ env::var_os("TERM").map(|t| t != *"dumb").unwrap_or(true) {
1173
// since we pass message-format=json to cargo, we need to tell the rustc
1174
// wrapper to give us colored output if necessary. This is because we
1175
// only want Cargo's JSON output, not rustcs.
0 commit comments