about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/bootstrap/README.md9
1 files changed, 9 insertions, 0 deletions
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: