Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBootstrapping unstable code from a stable compiler #29557
Comments
steveklabnik
added
the
A-build
label
Nov 4, 2015
This comment has been minimized.
This comment has been minimized.
|
@eddyb may have some ideas abut this |
This comment has been minimized.
This comment has been minimized.
|
If distros don't have anything against multiple packages, they can generate, e.g. Otherwise, we could put an "unlocked" rustc in Then our build system can look for a compatible |
This comment has been minimized.
This comment has been minimized.
|
If we just relax the bootstrap key a little, and make it a statically-known value instead of a "secret", then there would be no need for wrapper scripts. The build system could just export that value applicable to stage0 invocations too. As the configure script says itself, that secret is just meant to be a mild deterrent. By default it's only a A statically-known bootstrap key is not that different from an unlocked Aside, it might be nice if the resulting |
This comment has been minimized.
This comment has been minimized.
|
Would this include cross-compiling |
brson commentedNov 4, 2015
The stable Rust compiler requires the nightly Rust compiler to build. This is no good for distros that want to bootstrap from their own toolchain and don't want to maintain a nightly toolchain just for building Rust. We'll teach the Rust makefiles to deal with bootstrapping off the stable compiler transparently (the stable compiler already contains nightly features, just inaccessible).
https://internals.rust-lang.org/t/perfecting-rust-packaging-the-plan/2767