Skip to content

Commit d6fa933

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 0a58f58 + 98d8326 commit d6fa933

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
@@ -202,6 +202,7 @@ struct Build {
202202
target: Vec<String>,
203203
cargo: Option<String>,
204204
rustc: Option<String>,
205+
rustfmt: Option<String>, /* allow bootstrap.py to use rustfmt key */
205206
docs: Option<bool>,
206207
compiler_docs: Option<bool>,
207208
submodules: Option<bool>,

0 commit comments

Comments
 (0)