Skip to content

Commit 3bd2c48

Browse files
authored
Update how-to-build-and-run.md
Adds examples of `./x.py` commands.
1 parent f863101 commit 3bd2c48

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: src/building/how-to-build-and-run.md

+10
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ You can avoid this error by allowing powershell to run local scripts:
120120
```
121121
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
122122
```
123+
## Other `x` commands
124+
125+
Here are serveral non-comprehensive examples and explainations for various
126+
`x.py` commands:
127+
128+
- `./x.py clean` - invalidates the build config cache (but not LLVM cache also)
129+
- `./x.py check --all-targets` - does cross-compilation for a lot of different targets
130+
- `./x.py test --stage 1 --keep-stage-std 1` - use a cached version of the compiler
131+
- `./x.py test --bless src/test/mir_opt - automatically generates `MIR` dumps
132+
- `./x.py test --stage 1 --compare-mode chalk` - sets compare-mode to `chalk`
123133

124134
#### Running `x.py` slightly more conveniently
125135

0 commit comments

Comments
 (0)