diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-03-02 23:05:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-02 23:05:30 +0100 |
| commit | 8a21bcee254c9175345266dad9c1ac00399d73f9 (patch) | |
| tree | a0f28727cff8e3f0389a911b1faa44ec455fa868 | |
| parent | 7c4e9dd63dd26a72c05be15da724d41da37117bd (diff) | |
| parent | a6580baa6c1ad7fe62fe5dc59f0869ea6a64e43d (diff) | |
| download | rust-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-x | src/bootstrap/configure.py | 2 |
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') |
