diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-06-26 20:17:08 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-06-26 22:54:47 +0000 |
| commit | 85c4ea0138fcca2e8cf4515a063cd3b762d64aec (patch) | |
| tree | a5c9843279acbf237b25b5bdeecda579cc833aec /src/bootstrap/config.rs | |
| parent | 6f8c27ae89dfd32895419d7ef5b89844bcad1bcd (diff) | |
bootstrap: rename 'user' profile to 'dist'
Diffstat (limited to 'src/bootstrap/config.rs')
| -rw-r--r-- | src/bootstrap/config.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index 8ee63e561ba..b91275e73e9 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -1129,6 +1129,14 @@ impl Config { }; if let Some(include) = &toml.profile { + // Allows creating alias for profile names, allowing + // profiles to be renamed while maintaining back compatibility + // Keep in sync with `profile_aliases` in bootstrap.py + let profile_aliases = HashMap::from([("user", "dist")]); + let include = match profile_aliases.get(include.as_str()) { + Some(alias) => alias, + None => include.as_str(), + }; let mut include_path = config.src.clone(); include_path.push("src"); include_path.push("bootstrap"); |
