diff options
| author | jyn <github@jyn.dev> | 2023-04-19 08:25:29 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-04-19 09:50:21 -0500 |
| commit | b7607a9113760ee28680d94efca4b8f45e0a1988 (patch) | |
| tree | 2628e533246b7167c84bd1aa0a2c1ba39bae6db9 /src | |
| parent | 6d07dbc266f74509ae78dc144780d6fad7c7ded9 (diff) | |
| download | rust-b7607a9113760ee28680d94efca4b8f45e0a1988.tar.gz rust-b7607a9113760ee28680d94efca4b8f45e0a1988.zip | |
configure: Set `profile = user` by default
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/bootstrap_test.py | 1 | ||||
| -rwxr-xr-x | src/bootstrap/configure.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap_test.py b/src/bootstrap/bootstrap_test.py index 6717eb21012..26bd80a008f 100644 --- a/src/bootstrap/bootstrap_test.py +++ b/src/bootstrap/bootstrap_test.py @@ -97,6 +97,7 @@ class GenerateAndParseConfig(unittest.TestCase): def test_no_args(self): build = self.serialize_and_parse([]) self.assertEqual(build.get_toml("changelog-seen"), '2') + self.assertEqual(build.get_toml("profile"), 'user') self.assertIsNone(build.get_toml("llvm.download-ci-llvm")) def test_set_section(self): diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py index 5937d5a8cdd..7cc952b5c56 100755 --- a/src/bootstrap/configure.py +++ b/src/bootstrap/configure.py @@ -417,6 +417,8 @@ def parse_example_config(known_args, config): # Avoid using quotes unless it's necessary. targets[target][0] = targets[target][0].replace("x86_64-unknown-linux-gnu", "'{}'".format(target) if "." in target else target) + if 'profile' not in config: + set('profile', 'user', config) configure_file(sections, top_level_keys, targets, config) return section_order, sections, targets |
