Remove the redundant definition of STAGE in makefiles

This commit is contained in:
Brian Anderson 2011-09-29 12:06:37 -07:00
parent 4ee9b86384
commit 7dbce103fb
2 changed files with 7 additions and 10 deletions

View File

@ -197,8 +197,13 @@ CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)
endif
STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \
$$(CFG_VALGRIND_COMPILE$(1)) stage$(1)/bin/rustc$$(X) \
$$(CFG_RUSTC_FLAGS))
$$(CFG_VALGRIND_COMPILE) stage$(1)/bin/rustc$$(X) \
$$(CFG_RUSTC_FLAGS) --target=$(2))
PERF_STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \
$$(CFG_PERF_TOOL) stage$(1)/bin/rustc$$(X) \
$$(CFG_RUSTC_FLAGS) --target=$(2))
endef
FUZZ := stage1/bin/fuzzer$(X)

View File

@ -19,14 +19,6 @@ define STAGE_N
# for different directories, to handle cases where (say) a test relies on a
# compiler that relies on a .o file.
STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2), \
$$(CFG_VALGRIND_COMPILE) stage$(2)/bin/rustc$$(X) \
$$(CFG_RUSTC_FLAGS) --target=$(3))
PERF_STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2), \
$$(CFG_PERF_TOOL) stage$(2)/bin/rustc$$(X) \
$$(CFG_RUSTC_FLAGS) --target=$(3))
stage$(2)/bin/%.o: stage$(2)/bin/%.s
@$$(call E, assemble [gcc]: $$@)
$$(Q)gcc $$(CFG_GCCISH_CFLAGS) -o $$@ -c $$<