]> git.lizzy.rs Git - rust.git/commitdiff
mk: Revert hack to pull the bootstrap key from the snapshot bins
authorBrian Anderson <banderson@mozilla.com>
Sat, 17 Jan 2015 06:31:31 +0000 (22:31 -0800)
committerBrian Anderson <banderson@mozilla.com>
Sun, 18 Jan 2015 00:37:34 +0000 (16:37 -0800)
mk/main.mk

index 8e3b19ad70aff7ff16b52c822515759a01d4ef5b..46cbe34904dbcb5698c457130dabbb18ad4e69b0 100644 (file)
@@ -333,6 +333,7 @@ export CFG_DISABLE_UNSTABLE_FEATURES
 endif
 # Subvert unstable feature lints to do the self-build
 export CFG_BOOTSTRAP_KEY
+export RUSTC_BOOTSTRAP_KEY:=$(CFG_BOOTSTRAP_KEY)
 
 ######################################################################
 # Per-stage targets and runner
@@ -403,13 +404,8 @@ CSREQ$(1)_T_$(2)_H_$(3) = \
 ifeq ($(1),0)
 # Don't run the stage0 compiler under valgrind - that ship has sailed
 CFG_VALGRIND_COMPILE$(1) =
-# FIXME(21230) HACK Extract the key from the snapshot
-CFG_BOOSTRAP_KEY_ENV$(1) = RUSTC_BOOTSTRAP_KEY=$$$$((grep -a 'save analysis[0-9]' \
-       $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) || echo N) |\
-       sed 's/.*save analysis\([0-9]*\).*/\1/')
 else
 CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)
-CFG_BOOSTRAP_KEY_ENV$(1) = RUSTC_BOOTSTRAP_KEY=$$(CFG_BOOTSTRAP_KEY)
 endif
 
 # Add RUSTFLAGS_STAGEN values to the build command
@@ -482,7 +478,6 @@ STAGE$(1)_T_$(2)_H_$(3) := \
        $$(Q)$$(RPATH_VAR$(1)_T_$(2)_H_$(3)) \
                $$(call CFG_RUN_TARG_$(3),$(1), \
                $$(CFG_VALGRIND_COMPILE$(1)) \
-               $$(CFG_BOOSTRAP_KEY_ENV$(1)) \
                $$(HBIN$(1)_H_$(3))/rustc$$(X_$(3)) \
                --cfg $$(CFGFLAG$(1)_T_$(2)_H_$(3)) \
                $$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2)) \