From 6ff88eb4505937222bfbf09a064e3810dfe74440 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 24 Nov 2023 09:47:14 +0900 Subject: [PATCH] Activate direct mode when e.g. SCCACHE_DIR is set. --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 53d90c37f..a88a61e0d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -710,7 +710,7 @@ fn config_from_env() -> Result { .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;