Skip to content

Commit 9454dd5

Browse files
committed
Auto merge of #42491 - RalfJung:bootstrap-help, r=alexcrichton
bootstrap: improve 'build --help' by explaining what exactly the last example does I recently found myself confused about what exactly gets built how often when I run which command; I think this would have helped me. One thing I did not touch, but I feel could also be improved, is the wording just above: "For a quick build with a usable compile, you can pass". I am not a native speaker, but this sounds odd to me. Do you mean "For a quick build of a usable compiler" (but then it should say where the usable compiler is produced)? Or do you mean "For a quick build testing if the compiler is usable"? I can reword this, but I'd like to make sure I understand the intent of the message. What about ``` For a quick build of a usable compiler, you can pass: ./x.py build --stage 1 src/libtest This will first build everything once (like --stage 0 without further arguments would), and then use the compiler built in stage 0 to build src/libtest and its dependencies. Once this is done, build/$ARCH/stage1 contains a usable compiler. ``` However, I am not sure this is actually true. In particular, why even bother building the libstd in stage 1? AFAIK that ends up in `build/*/stage1-std`, not in `build/*/stage1` (which is filled from `build/*/stage0-*`).
2 parents 148e917 + 7359c79 commit 9454dd5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/bootstrap/flags.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,14 @@ Arguments:
196196
./x.py build
197197
./x.py build --stage 1
198198
199-
For a quick build with a usable compile, you can pass:
199+
For a quick build of a usable compiler, you can pass:
200200
201-
./x.py build --stage 1 src/libtest");
201+
./x.py build --stage 1 src/libtest
202+
203+
This will first build everything once (like --stage 0 without further
204+
arguments would), and then use the compiler built in stage 0 to build
205+
src/libtest and its dependencies.
206+
Once this is done, build/$ARCH/stage1 contains a usable compiler.");
202207
}
203208
"test" => {
204209
subcommand_help.push_str("\n

0 commit comments

Comments
 (0)