From a6580baa6c1ad7fe62fe5dc59f0869ea6a64e43d Mon Sep 17 00:00:00 2001 From: KittyBorgX Date: Thu, 2 Mar 2023 13:02:15 +0530 Subject: [PATCH] Allow setting hashmap toml values in `./configure` --- src/bootstrap/configure.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py index 04e798e3949d9..ab3d08292961f 100755 --- a/src/bootstrap/configure.py +++ b/src/bootstrap/configure.py @@ -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')