Skip to content

./configure doesn't allow setting hashmap toml values #108621

Closed
@jyn514

Description

@jyn514

I tried this code:

./configure --set llvm.build-config.LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=YES

I expected to see this happen: configure.py generates a toml file with the contents

build-config = {"LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN"="YES"}

Instead, this happened:

; ./configure --set llvm.build-config.LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=YES
configure: processing command line
configure: 
configure: llvm.build-config.LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN := YES
configure: build.configure-args := ['--set', 'llvm.build-config.LLVM_TEMPORARILY_ ...
Traceback (most recent call last):
  File "/Users/jyn/src/rust/./src/bootstrap/configure.py", line 486, in <module>
    configure_section(sections[section_key], section_config)
  File "/Users/jyn/src/rust/./src/bootstrap/configure.py", line 456, in configure_section
    lines[i] = "{} = {}".format(key, to_toml(value))
  File "/Users/jyn/src/rust/./src/bootstrap/configure.py", line 445, in to_toml
    raise RuntimeError('no toml')
RuntimeError: no toml

Meta

HEAD is branched from 5423745.

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions