Skip to content

Commit 6306c81

Browse files
committed
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.
1 parent 7dbce10 commit 6306c81

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Makefile.in

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
151151
export CFG_SRC_DIR
152152
export CFG_BUILD_DIR
153153
export CFG_VERSION
154+
export CFG_HOST_TRIPLE
154155
export CFG_LLVM_ROOT
155156
export CFG_ENABLE_MINGW_CROSS
156157

mk/perf.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
ifdef CFG_PERF_TOOL
3-
rustc-perf$(X): stage2/rustc$(X)
3+
rustc-perf$(X): stage2/bin/rustc$(X)
44
@$(call E, perf compile: $@)
55
$(PERF_STAGE1) -L stage2 -o $@ $(COMPILER_CRATE) >rustc-perf.err 2>&1
66
$(Q)rm -f $@
77
else
8-
rustc-perf$(X): stage2/rustc$(X)
8+
rustc-perf$(X): stage2/bin/rustc$(X)
99
$(Q)touch $@
1010
endif
1111

mk/stage0.mk

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

mk/tests.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ STDTEST_INPUTS := $(wildcard $(S)src/test/stdtest/*rs)
6868
ifdef CTEST_VALGRIND
6969
CFG_RUN_CTEST=$(call CFG_RUN_TEST,$(2))
7070
else
71-
CFG_RUN_CTEST=$(call CFG_RUN,stage$(1)/lib,$(2))
71+
CFG_RUN_CTEST=$(call CFG_RUN,stage$(1)/lib/rustc/$(CFG_HOST_TRIPLE),$(2))
7272
endif
7373

7474
######################################################################

0 commit comments

Comments
 (0)