diff --git a/src/building/how-to-build-and-run.md b/src/building/how-to-build-and-run.md index 0195659ac..a97568e6e 100644 --- a/src/building/how-to-build-and-run.md +++ b/src/building/how-to-build-and-run.md @@ -70,6 +70,14 @@ if you want to learn more about `x.py`, read its README.md To read more about the bootstrap process and why `x.py` is necessary, [read this chapter][bootstrap]. +### Running `x.py` slightly more conveniently + +There is a binary that wraps `x.py` called `x` in `src/tools/x`. All it does is +run `x.py`, but it can be installed system-wide and run from any subdirectory +of a checkout. It also looks up the appropriate version of `python` to use. + +You can install it with `cargo install --path src/tools/x`. + [bootstrap]: ./bootstrapping.md ## Building the Compiler