Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how-to-build-and-run.md #1928

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/building/how-to-build-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 explanations 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`
Comment on lines +128 to +132
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we decided to standardize on ./x in the docs (see #1707)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closing PR as obsolete.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it obsolete @Tbkhi


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

Expand Down