Fallback to top-level config.toml if not present in current directory #94589
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Currently x.py has some very strange behavior around config.toml.
--config
andRUST_BOOSTRAP_CONFIG
are unset, it will assume the file to use is./config.toml
in the current directory, even if it doesn't exist.https://github.com/rust-lang/rust/blob/be18e614ee5ec5bb4972516f82035215f4814ac1/src/bootstrap/bootstrap.py#L1243
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
The text was updated successfully, but these errors were encountered: