diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-01-26 16:06:00 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-01-27 01:24:53 +0800 |
| commit | 71703bb7d9f19d477a1c88f7ce8d4c9ce0055837 (patch) | |
| tree | f5f410688112d92df3779108d0d9ac4b18bc8acc | |
| parent | 761bda1e432a90892a91f483c857098287847d14 (diff) | |
bootstrap: adjust config file cascading fallback comment
| -rw-r--r-- | src/bootstrap/src/core/config/config.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index 910550b0a7d..ec0ba69c62a 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -1418,7 +1418,11 @@ impl Config { config.stage0_metadata = build_helper::stage0_parser::parse_stage0_file(); - // Read from `--config`, then `RUST_BOOTSTRAP_CONFIG`, then `./config.toml`, then `config.toml` in the root directory. + // Find configuration file, with the following cascading fallback (first match wins): + // - `--config <path>` + // - `RUST_BOOTSTRAP_CONFIG` + // - `./config.toml` + // - `config.toml` in the root directory. let toml_path = flags .config .clone() |
