Skip to content

Commit

Permalink
Read env variable at runtime rather than compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
frazar authored Nov 1, 2020
1 parent 90e2bfa commit ccc2695
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 @@ -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 {
Expand Down

0 comments on commit ccc2695

Please sign in to comment.