aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-21 14:52:02 -0700
committerGraydon Hoare <[email protected]>2011-03-21 14:52:02 -0700
commit0eb6be13fb141689e132bf1cd28fe4853498b9e7 (patch)
treeed56eba1305d820ce599e254b1d29243aca51cbd
parentInclude benchmark dirs in test build dirs. (diff)
downloadrust-0eb6be13fb141689e132bf1cd28fe4853498b9e7.tar.xz
rust-0eb6be13fb141689e132bf1cd28fe4853498b9e7.zip
Adjust run rules to avoid early substitution. Testsuite begins to run.
-rw-r--r--Makefile.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in
index 5496f061..0c134530 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -182,8 +182,6 @@ else
E = echo $(1)
endif
-R := $(CFG_RUN_TARG)
-T := $(CFG_RUN_TEST)
S := $(CFG_SRC_DIR)
X := $(CFG_EXE_SUFFIX)
@@ -192,8 +190,10 @@ VPATH := $(S)doc $(S)src
# Compilers we build, we now know how to run.
BOOT := $(Q)OCAMLRUNPARAM="b1" boot/rustboot$(X) $(CFG_BOOT_FLAGS) -L boot
-STAGE0 := $(Q)$(R) stage0/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage0
-STAGE1 := $(Q)$(R) stage1/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage1
+STAGE0 := $(Q)$(call CFG_RUN_TARG,\
+ stage0/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage0)
+STAGE1 := $(Q)$(call CFG_RUN_TARG,\
+ stage1/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage1)
# "Source" files we generate in builddir along the way.
GENERATED := boot/fe/lexer.ml boot/version.ml
@@ -876,19 +876,19 @@ compile-check: tidy \
test/run-pass/%.out.tmp: test/run-pass/%$(X) rt/$(CFG_RUNTIME)
$(Q)rm -f $<.tmp
@$(call E, run: $@)
- $(Q)$(call T, $<) > $@
+ $(Q)$(call CFG_RUN_TEST, $<) > $@
test/bench/shootout/%.out.tmp: test/bench/shootout/%$(X) \
rt/$(CFG_RUNTIME)
$(Q)rm -f $<.tmp
@$(call E, run: $@)
- $(Q)$(call T, $<) > $@
+ $(Q)$(call CFG_RUN_TEST, $<) > $@
test/bench/99-bottles/%.out.tmp: test/bench/99-bottles/%$(X) \
rt/$(CFG_RUNTIME)
$(Q)rm -f $<.tmp
@$(call E, run: $@)
- $(Q)$(call T, $<) > $@
+ $(Q)$(call CFG_RUN_TEST, $<) > $@
test/run-fail/%.out.tmp: test/run-fail/%$(X) \
rt/$(CFG_RUNTIME)
@@ -896,7 +896,7 @@ test/run-fail/%.out.tmp: test/run-fail/%$(X) \
@$(call E, run: $@)
$(Q)grep -q error-pattern $(S)src/test/run-fail/$(basename $*).rs
$(Q)rm -f $@
- $(Q)$(call T, $<) >$@ 2>&1 ; X=$$? ; \
+ $(Q)$(call CFG_RUN_TEST, $<) >$@ 2>&1 ; X=$$? ; \
if [ $$X -eq 0 ] ; then exit 1 ; else exit 0 ; fi
$(Q)grep --text --quiet \
"$$(grep error-pattern $(S)src/test/run-fail/$(basename $*).rs \