Skip to content

Commit

Permalink
Fix a variety of things in the makefiles
Browse files Browse the repository at this point in the history
Make tests and perf work again. Correctly get the host triple in rustc. Add
some FIXMEs about transitional code that needs to be removed.
  • Loading branch information
brson committed Sep 30, 2011
1 parent 7dbce10 commit 6306c81
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions mk/perf.mk
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions mk/stage0.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion mk/tests.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

######################################################################
Expand Down

0 comments on commit 6306c81

Please sign in to comment.