Skip to content

Commit

Permalink
Env CC_ENABLE_DEBUG_OUTPUT: treat "false" or empty str as false
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodyXu authored Oct 6, 2024
1 parent acb9fe6 commit dc953fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl CargoOutput {
warnings: true,
output: OutputKind::Forward,
debug: match std::env::var_os("CC_ENABLE_DEBUG_OUTPUT") {
Some(v) => v != "0",
Some(v) => v != "0" && v != "false" && v != "",
None => false,
},
checked_dbg_var: Arc::new(AtomicBool::new(false)),
Expand Down

0 comments on commit dc953fa

Please sign in to comment.