@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 --stage1 or --stage2 unless you make two clones. The main reasons I didn’t do that:
- I have a lot of working directories (typically
rust-[123456789]) 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 stage1 and stage2?)
Anyway, I’m open to really any solution, but let’s document some easy setup steps and run with it.