Skip to content

Commit

Permalink
Merge pull request #622 from cgswords/patch-2
Browse files Browse the repository at this point in the history
Added a usage example for local builds
  • Loading branch information
brson authored Jul 29, 2016
2 parents a71190c + 9764f75 commit 20f62f8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,23 @@ $ rustup target add i686-pc-windows-gnu # this one's installed by default
[MinGW/MSYS2 toolchain]: https://msys2.github.io/
[vs]: https://www.visualstudio.com/downloads

## Working with custom toolchains
## Working with custom toolchains and local builds

For convenience of developers working on Rust itself, `rustup` can manage
local builds of the Rust toolchain. To teach `rustup` about your build
just run:
local builds of the Rust toolchain. To teach `rustup` about your build,
run:

```
$ rustup toolchain link my-toolchain path/to/my/toolchain/sysroot
```

For example, on Ubuntu you might clone `rust-lang/rust` into `~/rust`, build it, and then run:

```
$ rustup toolchain link myrust ~/rustg/x86_64-unknown-linux-gnu/stage2/
$ rustup default myrust
```

Now you can name `my-toolchain` as any other `rustup`
toolchain. Create a `rustup` toolchain for each of your
`rust-lang/rust` workspaces and test them easily with `rustup run
Expand Down

0 comments on commit 20f62f8

Please sign in to comment.