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
This commit is contained in:
Moritz Ulrich 2016-11-28 11:21:12 +01:00
parent e36d243258
commit bfc187f23a
No known key found for this signature in database
GPG Key ID: 45833CACBC407FA7

View File

@ -46,6 +46,12 @@ stdenv.mkDerivation {
NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${llvmShared}/lib";
# Enable nightly features in stable compiles (used for
# bootstrapping, see https://github.com/rust-lang/rust/pull/37265).
# This loosens the hard restrictions on bootstrapping-compiler
# versions.
RUSTC_BOOTSTRAP = "1";
src = fetchgit {
url = https://github.com/rust-lang/rust;
rev = srcRev;