Skip to content

Commit 0eb6be1

Browse files
committed
Adjust run rules to avoid early substitution. Testsuite begins to run.
1 parent 7941b41 commit 0eb6be1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Makefile.in

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ else
182182
E = echo $(1)
183183
endif
184184

185-
R := $(CFG_RUN_TARG)
186-
T := $(CFG_RUN_TEST)
187185
S := $(CFG_SRC_DIR)
188186
X := $(CFG_EXE_SUFFIX)
189187

@@ -192,8 +190,10 @@ VPATH := $(S)doc $(S)src
192190

193191
# Compilers we build, we now know how to run.
194192
BOOT := $(Q)OCAMLRUNPARAM="b1" boot/rustboot$(X) $(CFG_BOOT_FLAGS) -L boot
195-
STAGE0 := $(Q)$(R) stage0/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage0
196-
STAGE1 := $(Q)$(R) stage1/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage1
193+
STAGE0 := $(Q)$(call CFG_RUN_TARG,\
194+
stage0/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage0)
195+
STAGE1 := $(Q)$(call CFG_RUN_TARG,\
196+
stage1/rustc$(X) $(CFG_RUSTC_FLAGS) -L stage1)
197197

198198
# "Source" files we generate in builddir along the way.
199199
GENERATED := boot/fe/lexer.ml boot/version.ml
@@ -876,27 +876,27 @@ compile-check: tidy \
876876
test/run-pass/%.out.tmp: test/run-pass/%$(X) rt/$(CFG_RUNTIME)
877877
$(Q)rm -f $<.tmp
878878
@$(call E, run: $@)
879-
$(Q)$(call T, $<) > $@
879+
$(Q)$(call CFG_RUN_TEST, $<) > $@
880880

881881
test/bench/shootout/%.out.tmp: test/bench/shootout/%$(X) \
882882
rt/$(CFG_RUNTIME)
883883
$(Q)rm -f $<.tmp
884884
@$(call E, run: $@)
885-
$(Q)$(call T, $<) > $@
885+
$(Q)$(call CFG_RUN_TEST, $<) > $@
886886

887887
test/bench/99-bottles/%.out.tmp: test/bench/99-bottles/%$(X) \
888888
rt/$(CFG_RUNTIME)
889889
$(Q)rm -f $<.tmp
890890
@$(call E, run: $@)
891-
$(Q)$(call T, $<) > $@
891+
$(Q)$(call CFG_RUN_TEST, $<) > $@
892892

893893
test/run-fail/%.out.tmp: test/run-fail/%$(X) \
894894
rt/$(CFG_RUNTIME)
895895
$(Q)rm -f $<.tmp
896896
@$(call E, run: $@)
897897
$(Q)grep -q error-pattern $(S)src/test/run-fail/$(basename $*).rs
898898
$(Q)rm -f $@
899-
$(Q)$(call T, $<) >$@ 2>&1 ; X=$$? ; \
899+
$(Q)$(call CFG_RUN_TEST, $<) >$@ 2>&1 ; X=$$? ; \
900900
if [ $$X -eq 0 ] ; then exit 1 ; else exit 0 ; fi
901901
$(Q)grep --text --quiet \
902902
"$$(grep error-pattern $(S)src/test/run-fail/$(basename $*).rs \

0 commit comments

Comments
 (0)