Skip to content

config.toml: Allow passing arbitrary configure and build args to LLVM cmake #138027

Closed
@tgross35

Description

@tgross35

LLVM's build system exposes a lot of flags that may be nice to tweak, but we probably don't want to worry about mapping directly in config.toml. It would be helpful to support something like the following:

[llvm]
configure-args = [
    "-DCMAKE_C_COMPILER_LAUNCHER=sccache",
    "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache",
    "-DLLVM_OPTIMIZED_TABLEGEN=true",
    "-DBUILD_SHARED_LIBS=true", # unsure whether this would work with Rust
]
build-args = [
    # ...
]

These would get passed to build_arg and configure_arg on cmake::Config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-bootstrap-configArea: bootstrap `config.toml` and the config systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.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