53
53
# versions in the same place
54
54
CFG_FILENAME_EXTRA =$(shell printf '% s' $(CFG_RELEASE )$(CFG_EXTRA_FILENAME ) | $(CFG_HASH_COMMAND ) )
55
55
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
-
67
56
# If local-rust is the same as the current version, then force a local-rebuild
68
57
ifdef CFG_ENABLE_LOCAL_RUST
69
58
ifeq ($(CFG_RELEASE ) ,\
@@ -73,14 +62,6 @@ ifeq ($(CFG_RELEASE),\
73
62
endif
74
63
endif
75
64
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
-
84
65
# The name of the package to use for creating tarballs, installers etc.
85
66
CFG_PACKAGE_NAME =rustc-$(CFG_PACKAGE_VERS )
86
67
@@ -387,13 +368,16 @@ CFG_INFO := $(info cfg: disabling unstable features (CFG_DISABLE_UNSTABLE_FEATUR
387
368
# Turn on feature-staging
388
369
export CFG_DISABLE_UNSTABLE_FEATURES
389
370
# Subvert unstable feature lints to do the self-build
390
- export RUSTC_BOOTSTRAP_KEY: = $( CFG_BOOTSTRAP_KEY )
371
+ export RUSTC_BOOTSTRAP
391
372
endif
392
- export CFG_BOOTSTRAP_KEY
393
373
ifdef CFG_MUSL_ROOT
394
374
export CFG_MUSL_ROOT
395
375
endif
396
376
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 =62b3e239
380
+
397
381
# #####################################################################
398
382
# Per-stage targets and runner
399
383
# #####################################################################
0 commit comments