From 0e01427bba6e4f5ceef4531d239c5bbc6c5d8082 Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Thu, 15 Dec 2016 01:10:44 +0100 Subject: [PATCH] rustbuild: Add small description of --keep-stage --- src/bootstrap/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/bootstrap/README.md b/src/bootstrap/README.md index d0b501e4d89..20c3a8d2851 100644 --- a/src/bootstrap/README.md +++ b/src/bootstrap/README.md @@ -42,6 +42,15 @@ The script accepts commands, flags, and filters to determine what to do: ./x.py build --stage 0 src/libtest ``` + If files are dirty that would normally be rebuilt from stage 0, that can be + overidden using `--keep-stage 0`. Using `--keep-stage n` will skip all steps + that belong to stage n or earlier: + + ``` + # keep old build products for stage 0 and build stage 1 + ./x.py build --keep-stage 0 --stage 1 + ``` + * `test` - a command for executing unit tests. Like the `build` command this will execute the entire test suite by default, and otherwise it can be used to select which test suite is run: