Skip to content

Commit

Permalink
Use host symlink for custom rustup toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
aDotInTheVoid authored and tshepang committed Feb 3, 2023
1 parent d579acb commit 5c65222
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/building/how-to-build-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,10 @@ you will likely need to build at some point; for example, if you want
to run the entire test suite).

```bash
rustup toolchain link stage1 build/<host-triple>/stage1
rustup toolchain link stage2 build/<host-triple>/stage2
rustup toolchain link stage1 build/host/stage1
rustup toolchain link stage2 build/host/stage2
```

The `<host-triple>` would typically be one of the following:

- Linux: `x86_64-unknown-linux-gnu`
- Mac: `x86_64-apple-darwin` or `aarch64-apple-darwin`
- Windows: `x86_64-pc-windows-msvc`

Now you can run the `rustc` you built with. If you run with `-vV`, you
should see a version number ending in `-dev`, indicating a build from
your local environment:
Expand Down

0 comments on commit 5c65222

Please sign in to comment.