Skip to content

Commit

Permalink
Activate direct mode when e.g. SCCACHE_DIR is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium authored and sylvestre committed Nov 24, 2023
1 parent 2dfbe04 commit 6ff88eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ fn config_from_env() -> Result<EnvConfig> {
.ok()
.and_then(|v| parse_size(&v));

let mut preprocessor_mode_config = PreprocessorCacheModeConfig::default();
let mut preprocessor_mode_config = PreprocessorCacheModeConfig::activated();
let preprocessor_mode_overridden = match env::var("SCCACHE_DIRECT").as_deref() {
Ok("on") | Ok("true") => {
preprocessor_mode_config.use_preprocessor_cache_mode = true;
Expand Down

0 comments on commit 6ff88eb

Please sign in to comment.