Skip to content

Commit 0e01427

Browse files
committed
rustbuild: Add small description of --keep-stage
1 parent 4e696ed commit 0e01427

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bootstrap/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ The script accepts commands, flags, and filters to determine what to do:
4242
./x.py build --stage 0 src/libtest
4343
```
4444

45+
If files are dirty that would normally be rebuilt from stage 0, that can be
46+
overidden using `--keep-stage 0`. Using `--keep-stage n` will skip all steps
47+
that belong to stage n or earlier:
48+
49+
```
50+
# keep old build products for stage 0 and build stage 1
51+
./x.py build --keep-stage 0 --stage 1
52+
```
53+
4554
* `test` - a command for executing unit tests. Like the `build` command this
4655
will execute the entire test suite by default, and otherwise it can be used to
4756
select which test suite is run:

0 commit comments

Comments
 (0)