@eddyb points out that one could simply make a toolchain per rustc clone and let rustup do the multiplexing. This seems fine, though it can't support
--stage2 unless you make two clones. The main reasons I didn't do that:
- I have a lot of working directories (typically
rust-) and it would be tedious to have a toolchain (or two) for each one.
- It can't support the other options easily.
- I've had this script lying around for years. =)
But I'm definitely game for a more seamless solution. In my ideal world, there'd be no setup at all, rustup would just know that if you are in a clone of Rust, you probably want to execute the Rust you built. (Or perhaps it would have builtin "magic toolchains" like
Anyway, I'm open to really any solution, but let's document some easy setup steps and run with it.