Skip to content

Fallback to top-level config.toml if not present in current directory #94589

Closed
@jyn514

Description

@jyn514

Currently x.py has some very strange behavior around config.toml.

We should make these consistent and fall back to the root directory for the default path as well. @pnkfelix has mentioned in the past they use per-directory config.toml files, but this wouldn't break that workflow - the only thing that would change is that "switch to a new directory to get a blank build + config" would have to also run touch config.toml.

cc @Mark-Simulacrum
@rustbot label: +A-rustbuild +C-enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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