diff --git a/src/config.rs b/src/config.rs index e238e75d6a8..c31a62a1bdc 100644 --- a/src/config.rs +++ b/src/config.rs @@ -199,7 +199,7 @@ impl Cfg { // If present, use the RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS environment // variable as settings path, or UNIX_FALLBACK_SETTINGS otherwise FallbackSettings::new(PathBuf::from( - option_env!("RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS") + process().var("RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS") .unwrap_or(UNIX_FALLBACK_SETTINGS), ))? } else {