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
compiler-errors authored Mar 2, 2023
2 parents 96e5b5d + a6580ba commit c897cbe
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 c897cbe

Please sign in to comment.