Skip to content

Commit bfc187f

Browse files
committed
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 rust-lang/rust#37265
1 parent e36d243 commit bfc187f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/development/compilers/rust/rustc.nix

+6
Original file line numberDiff line numberDiff line change
@@ -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;

0 commit comments

Comments
 (0)