Skip to content

Commit

Permalink
Rollup merge of rust-lang#108644 - KittyBorgX:hashmap-toml, r=albertl…
Browse files Browse the repository at this point in the history
…arsan68

Allow setting hashmap toml values in `./configure`

Fixes rust-lang#108621
  • Loading branch information
matthiaskrgr authored Mar 2, 2023
2 parents 7c4e9dd + a6580ba commit 8a21bce
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 8a21bce

Please sign in to comment.