Skip to content

Commit b7607a9

Browse files
committed
configure: Set profile = user by default
1 parent 6d07dbc commit b7607a9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/bootstrap/bootstrap_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def serialize_and_parse(self, args):
9797
def test_no_args(self):
9898
build = self.serialize_and_parse([])
9999
self.assertEqual(build.get_toml("changelog-seen"), '2')
100+
self.assertEqual(build.get_toml("profile"), 'user')
100101
self.assertIsNone(build.get_toml("llvm.download-ci-llvm"))
101102

102103
def test_set_section(self):

src/bootstrap/configure.py

+2
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ def parse_example_config(known_args, config):
417417
# Avoid using quotes unless it's necessary.
418418
targets[target][0] = targets[target][0].replace("x86_64-unknown-linux-gnu", "'{}'".format(target) if "." in target else target)
419419

420+
if 'profile' not in config:
421+
set('profile', 'user', config)
420422
configure_file(sections, top_level_keys, targets, config)
421423
return section_order, sections, targets
422424

0 commit comments

Comments
 (0)