rustc: Loosen bootstrapping restrictions.
Newer nightlies check a new environment variable that if set will loosen
restrictions on which compiler version can be used for bootstrapping.
Upstream issue is at https://github.com/rust-lang/rust/pull/37265
commitbfc187f23a80a02135b2d76fb1e92adc7d5759ce
authorMoritz Ulrich <moritz@tarn-vedra.de>
dateMon 28 Nov 2016, 11:21 (10 years ago)
parente36d243
pkgs/development/compilers/rust/rustc.nix+6
@@ -46,6 +46,12 @@ stdenv.mkDerivation {
4646
4747 NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${llvmShared}/lib";
4848
49+ # Enable nightly features in stable compiles (used for
50+ # bootstrapping, see https://github.com/rust-lang/rust/pull/37265).
51+ # This loosens the hard restrictions on bootstrapping-compiler
52+ # versions.
53+ RUSTC_BOOTSTRAP = "1";
54+
4955 src = fetchgit {
5056 url = https://github.com/rust-lang/rust;
5157 rev = srcRev;