Allow setting hashmap toml values in ./configure

This commit is contained in:
KittyBorgX 2023-03-02 13:02:15 +05:30
parent 864b6258fc
commit a6580baa6c

View File

@ -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')