@@ -121,7 +121,10 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`"
121
121
opts. optmulti ( "" , "exclude" , "build paths to exclude" , "PATH" ) ;
122
122
opts. optopt ( "" , "on-fail" , "command to run on failure" , "CMD" ) ;
123
123
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" ) ;
125
128
opts. optmulti ( "" , "keep-stage" , "stage(s) to keep without recompiling" , "N" ) ;
126
129
opts. optopt ( "" , "src" , "path to the root of the rust checkout" , "DIR" ) ;
127
130
opts. optopt ( "j" , "jobs" , "number of jobs to run in parallel" , "JOBS" ) ;
@@ -258,7 +261,7 @@ Arguments:
258
261
259
262
./x.py build --stage 1 src/libtest
260
263
261
- This will first build everything once (like --stage 0 without further
264
+ This will first build everything once (like ` --stage 0` without further
262
265
arguments would), and then use the compiler built in stage 0 to build
263
266
src/libtest and its dependencies.
264
267
Once this is done, build/$ARCH/stage1 contains a usable compiler." ,
@@ -290,10 +293,14 @@ Arguments:
290
293
291
294
./x.py test src/test/run-pass
292
295
./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
294
297
./x.py test src/test/ui --bless
295
298
./x.py test src/test/ui --compare-mode nll
296
299
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
+
297
304
If no arguments are passed then the complete artifacts for that stage are
298
305
compiled and tested.
299
306
0 commit comments