You might want to build and package up the compiler for distribution. You’ll want to run this command to do it:
If you’ve built a distribution artifact you might want to install it and test that it works on your target system. You’ll want to run this command:
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
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).