Skip to content

Commit c897cbe

Browse files
Rollup merge of rust-lang#108644 - KittyBorgX:hashmap-toml, r=albertlarsan68
Allow setting hashmap toml values in `./configure` Fixes rust-lang#108621
2 parents 96e5b5d + a6580ba commit c897cbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/bootstrap/configure.py

+2
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,8 @@ def to_toml(value):
442442
return value
443443
else:
444444
return "'" + value + "'"
445+
elif isinstance(value, dict):
446+
return "{" + ", ".join(map(lambda a: "{} = {}".format(to_toml(a[0]), to_toml(a[1])), value.items())) + "}"
445447
else:
446448
raise RuntimeError('no toml')
447449

0 commit comments

Comments
 (0)