Skip to content

Commit

Permalink
Rollup merge of #108644 - KittyBorgX:hashmap-toml, r=albertlarsan68
Browse files Browse the repository at this point in the history
Allow setting hashmap toml values in `./configure`

Fixes #108621
  • Loading branch information
matthiaskrgr authored Mar 2, 2023
2 parents 6adace7 + a6580ba commit 5acde60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ def to_toml(value):
return value
else:
return "'" + value + "'"
elif isinstance(value, dict):
return "{" + ", ".join(map(lambda a: "{} = {}".format(to_toml(a[0]), to_toml(a[1])), value.items())) + "}"
else:
raise RuntimeError('no toml')

Expand Down

0 comments on commit 5acde60

Please sign in to comment.