diff --git a/Makefile.in b/Makefile.in index a52df01ab37..a4d8f2b6b61 100644 --- a/Makefile.in +++ b/Makefile.in @@ -183,7 +183,7 @@ SREQ$(1) = stage$(1)/rustc$(X) \ $$(MKFILES) endif -STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1),stage$(1), \ +STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \ $$(CFG_VALGRIND_COMPILE) stage$(1)/rustc$$(X) \ $$(CFG_RUSTC_FLAGS)) endef diff --git a/mk/platform.mk b/mk/platform.mk index 9555ed57539..bb16e7fa320 100644 --- a/mk/platform.mk +++ b/mk/platform.mk @@ -77,7 +77,7 @@ ifdef CFG_UNIXY CFG_PATH_MUNGE := true CFG_EXE_SUFFIX := - CFG_RUN_TARG=$(CFG_LDENV)=$(CFG_BUILD_DIR)/$(1) $(3) + CFG_RUN_TARG=$(CFG_LDENV)=$(CFG_BUILD_DIR)/$(1) $(2) CFG_RUN_TEST=\ $(CFG_LDENV)=$(call CFG_TESTLIB,$(1)) \ $(CFG_VALGRIND) $(1) @@ -118,7 +118,7 @@ ifdef CFG_WINDOWSY CFG_LDPATH :=$(CFG_LLVM_BINDIR) CFG_LDPATH :=$(CFG_LDPATH):$$PATH CFG_RUN_TEST=PATH="$(CFG_LDPATH):$(call CFG_TESTLIB,$(1))" $(1) - CFG_RUN_TARG=PATH="$(CFG_BUILD_DIR)/$(2)/lib:$(CFG_LDPATH)" $(3) + CFG_RUN_TARG=PATH="$(CFG_LDPATH)" $(2) ifndef CFG_ENABLE_MINGW_CROSS CFG_PATH_MUNGE := $(strip perl -i.bak -p \ diff --git a/mk/pp.mk b/mk/pp.mk index 7aa012800db..169c19b9aec 100644 --- a/mk/pp.mk +++ b/mk/pp.mk @@ -9,7 +9,7 @@ PP_INPUTS_FILTERED = $(shell echo $(PP_INPUTS) | xargs grep -L no-reformat) reformat: $(SREQ1) @$(call E, reformat [stage1]: $@) for i in $(PP_INPUTS_FILTERED); \ - do $(call CFG_RUN_TARG,stage0,stage0,stage1/rustc$(X)) \ + do $(call CFG_RUN_TARG,stage0,stage1/rustc$(X)) \ --pretty normal $$i >$$i.tmp; \ if cmp --silent $$i.tmp $$i; \ then echo no changes to $$i; rm $$i.tmp; \ diff --git a/mk/stageN.mk b/mk/stageN.mk index 6390ac79cc0..f1daa48df8f 100644 --- a/mk/stageN.mk +++ b/mk/stageN.mk @@ -13,7 +13,7 @@ define STAGEN # for different directories, to handle cases where (say) a test relies on a # compiler that relies on a .o file. -STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2),stage$(1), \ +STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2), \ $$(CFG_VALGRIND_COMPILE) stage$(2)/rustc$$(X) \ $$(CFG_RUSTC_FLAGS)) diff --git a/mk/tests.mk b/mk/tests.mk index 8e10359a1d0..a135dcc313f 100644 --- a/mk/tests.mk +++ b/mk/tests.mk @@ -351,15 +351,15 @@ test/stdtest.stage3$(X): $(STDTEST_CRATE) $(STDTEST_INPUTS) $(SREQ3) check-stage1-std:test/stdtest.stage1$(X) @$(call E, run: $<) - $(Q)$(call CFG_RUN_TARG,stage1,stage1, $<) + $(Q)$(call CFG_RUN_TARG,stage1, $<) check-stage2-std:test/stdtest.stage2$(X) @$(call E, run: $<) - $(Q)$(call CFG_RUN_TARG,stage2,stage2, $<) + $(Q)$(call CFG_RUN_TARG,stage2, $<) check-stage3-std:test/stdtest.stage3$(X) @$(call E, run: $<) - $(Q)$(call CFG_RUN_TARG,stage3,stage3, $<) + $(Q)$(call CFG_RUN_TARG,stage3, $<) # Testing the rustctest crate @@ -380,12 +380,12 @@ test/rustctest.stage3$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) \ check-stage1-rustc: test/rustctest.stage1$(X) @$(call E, run: $<) - $(Q)$(call CFG_RUN_TARG,stage1,stage0, $<) + $(Q)$(call CFG_RUN_TARG,stage1, $<) check-stage2-rustc: test/rustctest.stage2$(X) @$(call E, run: $<) - $(Q)$(call CFG_RUN_TARG,stage2,stage1, $<) + $(Q)$(call CFG_RUN_TARG,stage2, $<) check-stage3-rustc: test/rustctest.stage3$(X) @$(call E, run: $<) - $(Q)$(call CFG_RUN_TARG,stage2,stage1, $<) + $(Q)$(call CFG_RUN_TARG,stage2, $<)