From 3bd2c48caa0aaf492a6e0eec024f4944ae3918e0 Mon Sep 17 00:00:00 2001 From: Tbkhi Date: Fri, 8 Mar 2024 21:32:52 -0400 Subject: [PATCH 1/2] Update how-to-build-and-run.md Adds examples of `./x.py` commands. --- src/building/how-to-build-and-run.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/building/how-to-build-and-run.md b/src/building/how-to-build-and-run.md index 253a94956..bc948aa39 100644 --- a/src/building/how-to-build-and-run.md +++ b/src/building/how-to-build-and-run.md @@ -120,6 +120,16 @@ You can avoid this error by allowing powershell to run local scripts: ``` Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser ``` +## Other `x` commands + +Here are serveral non-comprehensive examples and explainations for various +`x.py` commands: + +- `./x.py clean` - invalidates the build config cache (but not LLVM cache also) +- `./x.py check --all-targets` - does cross-compilation for a lot of different targets +- `./x.py test --stage 1 --keep-stage-std 1` - use a cached version of the compiler +- `./x.py test --bless src/test/mir_opt - automatically generates `MIR` dumps +- `./x.py test --stage 1 --compare-mode chalk` - sets compare-mode to `chalk` #### Running `x.py` slightly more conveniently From 1dc15c6ce0f46555821829758da7002d478e16af Mon Sep 17 00:00:00 2001 From: Tbkhi Date: Sat, 9 Mar 2024 08:17:31 -0400 Subject: [PATCH 2/2] Update src/building/how-to-build-and-run.md Co-authored-by: Tshepang Mbambo --- src/building/how-to-build-and-run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/building/how-to-build-and-run.md b/src/building/how-to-build-and-run.md index bc948aa39..90db7999c 100644 --- a/src/building/how-to-build-and-run.md +++ b/src/building/how-to-build-and-run.md @@ -122,7 +122,7 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser ``` ## Other `x` commands -Here are serveral non-comprehensive examples and explainations for various +Here are serveral non-comprehensive examples and explanations for various `x.py` commands: - `./x.py clean` - invalidates the build config cache (but not LLVM cache also)