Skip to content

Commit 39c0aaf

Browse files
authored
Disable CC_ENABLE_DEBUG_OUTPUT if it is set to "0" (#1234)
1 parent 7e9730b commit 39c0aaf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/command_helpers.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ impl CargoOutput {
4444
metadata: true,
4545
warnings: true,
4646
output: OutputKind::Forward,
47-
debug: std::env::var_os("CC_ENABLE_DEBUG_OUTPUT").is_some(),
47+
debug: match std::env::var_os("CC_ENABLE_DEBUG_OUTPUT") {
48+
Some(v) => v != "0",
49+
None => false,
50+
},
4851
checked_dbg_var: Arc::new(AtomicBool::new(false)),
4952
}
5053
}

0 commit comments

Comments
 (0)