5353# versions in the same place
5454CFG_FILENAME_EXTRA =$(shell printf '% s' $(CFG_RELEASE )$(CFG_EXTRA_FILENAME ) | $(CFG_HASH_COMMAND ) )
5555
56- # A magic value that allows the compiler to use unstable features during the
57- # bootstrap even when doing so would normally be an error because of feature
58- # staging or because the build turns on warnings-as-errors and unstable features
59- # default to warnings. The build has to match this key in an env var.
60- #
61- # This value is keyed off the release to ensure that all compilers for one
62- # particular release have the same bootstrap key. Note that this is
63- # intentionally not "secure" by any definition, this is largely just a deterrent
64- # from users enabling unstable features on the stable compiler.
65- CFG_BOOTSTRAP_KEY =$(CFG_FILENAME_EXTRA )
66-
6756# If local-rust is the same as the current version, then force a local-rebuild
6857ifdef CFG_ENABLE_LOCAL_RUST
6958ifeq ($(CFG_RELEASE ) ,\
@@ -73,14 +62,6 @@ ifeq ($(CFG_RELEASE),\
7362endif
7463endif
7564
76- # The stage0 compiler needs to use the previous key recorded in src/stage0.txt,
77- # except for local-rebuild when it just uses the same current key.
78- ifdef CFG_ENABLE_LOCAL_REBUILD
79- CFG_BOOTSTRAP_KEY_STAGE0 =$(CFG_BOOTSTRAP_KEY )
80- else
81- CFG_BOOTSTRAP_KEY_STAGE0 =$(shell sed -ne 's/^rustc_key: //p' $(S ) src/stage0.txt)
82- endif
83-
8465# The name of the package to use for creating tarballs, installers etc.
8566CFG_PACKAGE_NAME =rustc-$(CFG_PACKAGE_VERS )
8667
@@ -387,13 +368,16 @@ CFG_INFO := $(info cfg: disabling unstable features (CFG_DISABLE_UNSTABLE_FEATUR
387368# Turn on feature-staging
388369export CFG_DISABLE_UNSTABLE_FEATURES
389370# Subvert unstable feature lints to do the self-build
390- export RUSTC_BOOTSTRAP_KEY: = $( CFG_BOOTSTRAP_KEY )
371+ export RUSTC_BOOTSTRAP
391372endif
392- export CFG_BOOTSTRAP_KEY
393373ifdef CFG_MUSL_ROOT
394374export CFG_MUSL_ROOT
395375endif
396376
377+ # FIXME: Transitionary measure to bootstrap using the old bootstrap logic.
378+ # Remove this once the bootstrap compiler uses the new login in Issue #36548.
379+ export RUSTC_BOOTSTRAP_KEY =5c6cf767
380+
397381# #####################################################################
398382# Per-stage targets and runner
399383# #####################################################################
0 commit comments