Skip to content

Commit fe0c255

Browse files
Rollup merge of rust-lang#52853 - RalfJung:bootstrap-help, r=alexcrichton
Improve bootstrap help on stages Cc @eddyb
2 parents ca4364f + aa7d7d0 commit fe0c255

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/bootstrap/flags.rs

+10-3
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`"
121121
opts.optmulti("", "exclude", "build paths to exclude", "PATH");
122122
opts.optopt("", "on-fail", "command to run on failure", "CMD");
123123
opts.optflag("", "dry-run", "dry run; don't build anything");
124-
opts.optopt("", "stage", "stage to build", "N");
124+
opts.optopt("", "stage",
125+
"stage to build (indicates compiler to use/test, e.g. stage 0 uses the \
126+
bootstrap compiler, stage 1 the stage 0 rustc artifacts, etc.)",
127+
"N");
125128
opts.optmulti("", "keep-stage", "stage(s) to keep without recompiling", "N");
126129
opts.optopt("", "src", "path to the root of the rust checkout", "DIR");
127130
opts.optopt("j", "jobs", "number of jobs to run in parallel", "JOBS");
@@ -258,7 +261,7 @@ Arguments:
258261
259262
./x.py build --stage 1 src/libtest
260263
261-
This will first build everything once (like --stage 0 without further
264+
This will first build everything once (like `--stage 0` without further
262265
arguments would), and then use the compiler built in stage 0 to build
263266
src/libtest and its dependencies.
264267
Once this is done, build/$ARCH/stage1 contains a usable compiler.",
@@ -290,10 +293,14 @@ Arguments:
290293
291294
./x.py test src/test/run-pass
292295
./x.py test src/libstd --test-args hash_map
293-
./x.py test src/libstd --stage 0
296+
./x.py test src/libstd --stage 0 --no-doc
294297
./x.py test src/test/ui --bless
295298
./x.py test src/test/ui --compare-mode nll
296299
300+
Note that `test src/test/* --stage N` does NOT depend on `build src/rustc --stage N`;
301+
just like `build src/libstd --stage N` it tests the compiler produced by the previous
302+
stage.
303+
297304
If no arguments are passed then the complete artifacts for that stage are
298305
compiled and tested.
299306

0 commit comments

Comments
 (0)