Fix a variety of things in the makefiles

Make tests and perf work again. Correctly get the host triple in rustc. Add
some FIXMEs about transitional code that needs to be removed.
This commit is contained in:
Brian Anderson 2011-09-29 12:21:58 -07:00
parent 7dbce103fb
commit 6306c81826
4 changed files with 6 additions and 5 deletions

View File

@ -151,6 +151,7 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
export CFG_SRC_DIR
export CFG_BUILD_DIR
export CFG_VERSION
export CFG_HOST_TRIPLE
export CFG_LLVM_ROOT
export CFG_ENABLE_MINGW_CROSS

View File

@ -1,11 +1,11 @@
ifdef CFG_PERF_TOOL
rustc-perf$(X): stage2/rustc$(X)
rustc-perf$(X): stage2/bin/rustc$(X)
@$(call E, perf compile: $@)
$(PERF_STAGE1) -L stage2 -o $@ $(COMPILER_CRATE) >rustc-perf.err 2>&1
$(Q)rm -f $@
else
rustc-perf$(X): stage2/rustc$(X)
rustc-perf$(X): stage2/bin/rustc$(X)
$(Q)touch $@
endif

View File

@ -1,5 +1,5 @@
# FIXME: temporary hack: stdlib and rustrt come in the lib/ directory,
# but we want them in the base directory, so we move them out.
# FIXME: We're temorarily moving stuff all over the place here to make
# the old snapshot compatible with the new build rules
stage0/bin/rustc$(X): $(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES)
@$(call E, fetch: $@)
$(Q)$(S)src/etc/get-snapshot.py

View File

@ -68,7 +68,7 @@ STDTEST_INPUTS := $(wildcard $(S)src/test/stdtest/*rs)
ifdef CTEST_VALGRIND
CFG_RUN_CTEST=$(call CFG_RUN_TEST,$(2))
else
CFG_RUN_CTEST=$(call CFG_RUN,stage$(1)/lib,$(2))
CFG_RUN_CTEST=$(call CFG_RUN,stage$(1)/lib/rustc/$(CFG_HOST_TRIPLE),$(2))
endif
######################################################################