mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 19:12:50 +00:00
Allow setting hashmap toml values in ./configure
This commit is contained in:
parent
864b6258fc
commit
a6580baa6c
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user