Skip to content

Commit ea371a3

Browse files
committed
Cleanup the library path now that we copy from stageN/lib to stageN+1/
1 parent d79afd7 commit ea371a3

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ SREQ$(1) = stage$(1)/rustc$(X) \
183183
$$(MKFILES)
184184
endif
185185

186-
STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1),stage$(1), \
186+
STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \
187187
$$(CFG_VALGRIND_COMPILE) stage$(1)/rustc$$(X) \
188188
$$(CFG_RUSTC_FLAGS))
189189
endef

mk/platform.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ifdef CFG_UNIXY
7777

7878
CFG_PATH_MUNGE := true
7979
CFG_EXE_SUFFIX :=
80-
CFG_RUN_TARG=$(CFG_LDENV)=$(CFG_BUILD_DIR)/$(1) $(3)
80+
CFG_RUN_TARG=$(CFG_LDENV)=$(CFG_BUILD_DIR)/$(1) $(2)
8181
CFG_RUN_TEST=\
8282
$(CFG_LDENV)=$(call CFG_TESTLIB,$(1)) \
8383
$(CFG_VALGRIND) $(1)
@@ -118,7 +118,7 @@ ifdef CFG_WINDOWSY
118118
CFG_LDPATH :=$(CFG_LLVM_BINDIR)
119119
CFG_LDPATH :=$(CFG_LDPATH):$$PATH
120120
CFG_RUN_TEST=PATH="$(CFG_LDPATH):$(call CFG_TESTLIB,$(1))" $(1)
121-
CFG_RUN_TARG=PATH="$(CFG_BUILD_DIR)/$(2)/lib:$(CFG_LDPATH)" $(3)
121+
CFG_RUN_TARG=PATH="$(CFG_LDPATH)" $(2)
122122

123123
ifndef CFG_ENABLE_MINGW_CROSS
124124
CFG_PATH_MUNGE := $(strip perl -i.bak -p \

mk/pp.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PP_INPUTS_FILTERED = $(shell echo $(PP_INPUTS) | xargs grep -L no-reformat)
99
reformat: $(SREQ1)
1010
@$(call E, reformat [stage1]: $@)
1111
for i in $(PP_INPUTS_FILTERED); \
12-
do $(call CFG_RUN_TARG,stage0,stage0,stage1/rustc$(X)) \
12+
do $(call CFG_RUN_TARG,stage0,stage1/rustc$(X)) \
1313
--pretty normal $$i >$$i.tmp; \
1414
if cmp --silent $$i.tmp $$i; \
1515
then echo no changes to $$i; rm $$i.tmp; \

mk/stageN.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ define STAGEN
1313
# for different directories, to handle cases where (say) a test relies on a
1414
# compiler that relies on a .o file.
1515

16-
STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2),stage$(1), \
16+
STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2), \
1717
$$(CFG_VALGRIND_COMPILE) stage$(2)/rustc$$(X) \
1818
$$(CFG_RUSTC_FLAGS))
1919

mk/tests.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,15 @@ test/stdtest.stage3$(X): $(STDTEST_CRATE) $(STDTEST_INPUTS) $(SREQ3)
351351

352352
check-stage1-std:test/stdtest.stage1$(X)
353353
@$(call E, run: $<)
354-
$(Q)$(call CFG_RUN_TARG,stage1,stage1, $<)
354+
$(Q)$(call CFG_RUN_TARG,stage1, $<)
355355

356356
check-stage2-std:test/stdtest.stage2$(X)
357357
@$(call E, run: $<)
358-
$(Q)$(call CFG_RUN_TARG,stage2,stage2, $<)
358+
$(Q)$(call CFG_RUN_TARG,stage2, $<)
359359

360360
check-stage3-std:test/stdtest.stage3$(X)
361361
@$(call E, run: $<)
362-
$(Q)$(call CFG_RUN_TARG,stage3,stage3, $<)
362+
$(Q)$(call CFG_RUN_TARG,stage3, $<)
363363

364364
# Testing the rustctest crate
365365

@@ -380,12 +380,12 @@ test/rustctest.stage3$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2) \
380380

381381
check-stage1-rustc: test/rustctest.stage1$(X)
382382
@$(call E, run: $<)
383-
$(Q)$(call CFG_RUN_TARG,stage1,stage0, $<)
383+
$(Q)$(call CFG_RUN_TARG,stage1, $<)
384384

385385
check-stage2-rustc: test/rustctest.stage2$(X)
386386
@$(call E, run: $<)
387-
$(Q)$(call CFG_RUN_TARG,stage2,stage1, $<)
387+
$(Q)$(call CFG_RUN_TARG,stage2, $<)
388388

389389
check-stage3-rustc: test/rustctest.stage3$(X)
390390
@$(call E, run: $<)
391-
$(Q)$(call CFG_RUN_TARG,stage2,stage1, $<)
391+
$(Q)$(call CFG_RUN_TARG,stage2, $<)

0 commit comments

Comments
 (0)