diff --git a/config.toml.example b/config.toml.example index f12ff76284589..839b2b1ef26b0 100644 --- a/config.toml.example +++ b/config.toml.example @@ -138,6 +138,10 @@ # specified, use this rustc binary instead as the stage0 snapshot compiler. #rustc = "/path/to/bin/rustc" +# Instead of download the src/stage0.txt version of rustfmt specified, +# use this rustfmt binary instead as the stage0 snapshot rustfmt. +#rustfmt = "/path/to/bin/rustfmt" + # Flag to specify whether any documentation is built. If false, rustdoc and # friends will still be compiled but they will not be used to generate any # documentation. diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index 0970a50bee47a..cc031d256298f 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -202,6 +202,7 @@ struct Build { target: Vec, cargo: Option, rustc: Option, + rustfmt: Option, /* allow bootstrap.py to use rustfmt key */ docs: Option, compiler_docs: Option, submodules: Option,