From b817a68391bbd3cfe5285457d61111500afeb158 Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Fri, 27 Dec 2019 05:32:11 +0000 Subject: [PATCH 1/2] allow rustfmt key in [build] section --- src/bootstrap/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index 11bfc7a47cc48..4fdfb744f381c 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -201,6 +201,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, From 98d8326cfc0b20b20d161fe2830bcfe2072cfdfd Mon Sep 17 00:00:00 2001 From: Sebastien Marie Date: Fri, 27 Dec 2019 05:32:12 +0000 Subject: [PATCH 2/2] add comment for rustfmt in config.toml.example --- config.toml.example | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.toml.example b/config.toml.example index 5152a6c988582..39be51758068f 100644 --- a/config.toml.example +++ b/config.toml.example @@ -132,6 +132,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.