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:
parent
e36d243258
commit
bfc187f23a
@ -46,6 +46,12 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${llvmShared}/lib";
|
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 {
|
src = fetchgit {
|
||||||
url = https://github.com/rust-lang/rust;
|
url = https://github.com/rust-lang/rust;
|
||||||
rev = srcRev;
|
rev = srcRev;
|
||||||
|
Loading…
Reference in New Issue
Block a user