about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-02 23:05:30 +0100
committerGitHub <noreply@github.com>2023-03-02 23:05:30 +0100
commit8a21bcee254c9175345266dad9c1ac00399d73f9 (patch)
treea0f28727cff8e3f0389a911b1faa44ec455fa868
parent7c4e9dd63dd26a72c05be15da724d41da37117bd (diff)
parenta6580baa6c1ad7fe62fe5dc59f0869ea6a64e43d (diff)
downloadrust-8a21bcee254c9175345266dad9c1ac00399d73f9.tar.gz
rust-8a21bcee254c9175345266dad9c1ac00399d73f9.zip
Rollup merge of #108644 - KittyBorgX:hashmap-toml, r=albertlarsan68
Allow setting hashmap toml values in `./configure`

Fixes https://github.com/rust-lang/rust/issues/108621
-rwxr-xr-xsrc/bootstrap/configure.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py
index 04e798e3949..ab3d0829296 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')