Skip to content

Commit ccc2695

Browse files
authored
Read env variable at runtime rather than compile time
1 parent 90e2bfa commit ccc2695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl Cfg {
199199
// If present, use the RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS environment
200200
// variable as settings path, or UNIX_FALLBACK_SETTINGS otherwise
201201
FallbackSettings::new(PathBuf::from(
202-
option_env!("RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS")
202+
process().var("RUSTUP_OVERRIDE_UNIX_FALLBACK_SETTINGS")
203203
.unwrap_or(UNIX_FALLBACK_SETTINGS),
204204
))?
205205
} else {

0 commit comments

Comments
 (0)