Skip to content

Commit 71703bb

Browse files
committed
bootstrap: adjust config file cascading fallback comment
1 parent 761bda1 commit 71703bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/src/core/config/config.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,11 @@ impl Config {
14181418

14191419
config.stage0_metadata = build_helper::stage0_parser::parse_stage0_file();
14201420

1421-
// Read from `--config`, then `RUST_BOOTSTRAP_CONFIG`, then `./config.toml`, then `config.toml` in the root directory.
1421+
// Find configuration file, with the following cascading fallback (first match wins):
1422+
// - `--config <path>`
1423+
// - `RUST_BOOTSTRAP_CONFIG`
1424+
// - `./config.toml`
1425+
// - `config.toml` in the root directory.
14221426
let toml_path = flags
14231427
.config
14241428
.clone()

0 commit comments

Comments
 (0)