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:
parent
7dbce103fb
commit
6306c81826
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
######################################################################
|
||||
|
|
Loading…
Reference in New Issue