Skip to content

Commit

Permalink
Cleanup the library path now that we copy from stageN/lib to stageN+1/
Browse files Browse the repository at this point in the history
  • Loading branch information
cixtor committed Jul 21, 2011
1 parent d79afd7 commit ea371a3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mk/platform.mk
Expand Up @@ -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)
Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion mk/pp.mk
Expand Up @@ -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; \
Expand Down
2 changes: 1 addition & 1 deletion mk/stageN.mk
Expand Up @@ -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))

Expand Down
12 changes: 6 additions & 6 deletions mk/tests.mk
Expand Up @@ -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

Expand All @@ -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, $<)

0 comments on commit ea371a3

Please sign in to comment.