blob: 7430ffb9b8dc0995dab263f44e940463fc135d8c [file] [log] [blame] [view] [edit]
# Build distribution artifacts
You might want to build and package up the compiler for distribution.
Youll want to run this command to do it:
```bash
./x.py dist
```
# Install distribution artifacts
If youve built a distribution artifact you might want to install it and
test that it works on your target system. Youll want to run this command:
```bash
./x.py install
```
Note: If you are testing out a modification to a compiler, you
might want to use it to compile some project.
Usually, you do not want to use ./x.py install for testing.
Rather, you should create a toolchain as discussed in
[here][create-rustup-toolchain].
For example, if the toolchain you created is called foo, you
would then invoke it with `rustc +foo ...` (where ... represents
the rest of the arguments).
[create-rustup-toolchain]: ./how-to-build-and-run.md#creating-a-rustup-toolchain