Skip to content

Commit fa1d63a

Browse files
committed
mk: Revert hack to pull the bootstrap key from the snapshot bins
1 parent 89b80fa commit fa1d63a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mk/main.mk

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ export CFG_DISABLE_UNSTABLE_FEATURES
333333
endif
334334
# Subvert unstable feature lints to do the self-build
335335
export CFG_BOOTSTRAP_KEY
336+
export RUSTC_BOOTSTRAP_KEY:=$(CFG_BOOTSTRAP_KEY)
336337

337338
######################################################################
338339
# Per-stage targets and runner
@@ -403,13 +404,8 @@ CSREQ$(1)_T_$(2)_H_$(3) = \
403404
ifeq ($(1),0)
404405
# Don't run the stage0 compiler under valgrind - that ship has sailed
405406
CFG_VALGRIND_COMPILE$(1) =
406-
# FIXME(21230) HACK Extract the key from the snapshot
407-
CFG_BOOSTRAP_KEY_ENV$(1) = RUSTC_BOOTSTRAP_KEY=$$$$((grep -a 'save analysis[0-9]' \
408-
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) || echo N) |\
409-
sed 's/.*save analysis\([0-9]*\).*/\1/')
410407
else
411408
CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)
412-
CFG_BOOSTRAP_KEY_ENV$(1) = RUSTC_BOOTSTRAP_KEY=$$(CFG_BOOTSTRAP_KEY)
413409
endif
414410

415411
# Add RUSTFLAGS_STAGEN values to the build command
@@ -482,7 +478,6 @@ STAGE$(1)_T_$(2)_H_$(3) := \
482478
$$(Q)$$(RPATH_VAR$(1)_T_$(2)_H_$(3)) \
483479
$$(call CFG_RUN_TARG_$(3),$(1), \
484480
$$(CFG_VALGRIND_COMPILE$(1)) \
485-
$$(CFG_BOOSTRAP_KEY_ENV$(1)) \
486481
$$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
487482
--cfg $$(CFGFLAG$(1)_T_$(2)_H_$(3)) \
488483
$$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2)) \

0 commit comments

Comments
 (0)