Skip to content

Commit 9dd2c9e

Browse files
authored
Rollup merge of #67636 - semarie:bootstrap-rustfmt, r=Mark-Simulacrum
allow rustfmt key in [build] section Permit using `rustfmt` in `config.toml`. It will allow to not download `rustfmt` binary, which is not possible for at least some tiers-3 platforms. Fixes: #67624 r? @Mark-Simulacrum
2 parents 76c1454 + 98d8326 commit 9dd2c9e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config.toml.example

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
# specified, use this rustc binary instead as the stage0 snapshot compiler.
139139
#rustc = "/path/to/bin/rustc"
140140

141+
# Instead of download the src/stage0.txt version of rustfmt specified,
142+
# use this rustfmt binary instead as the stage0 snapshot rustfmt.
143+
#rustfmt = "/path/to/bin/rustfmt"
144+
141145
# Flag to specify whether any documentation is built. If false, rustdoc and
142146
# friends will still be compiled but they will not be used to generate any
143147
# documentation.

src/bootstrap/config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ struct Build {
203203
target: Vec<String>,
204204
cargo: Option<String>,
205205
rustc: Option<String>,
206+
rustfmt: Option<String>, /* allow bootstrap.py to use rustfmt key */
206207
docs: Option<bool>,
207208
compiler_docs: Option<bool>,
208209
submodules: Option<bool>,

0 commit comments

Comments
 (0)