build: Build crates with --cfg stageN. Use #[cfg(stageN)]

This commit is contained in:
Brian Anderson 2012-06-05 23:46:44 -07:00
parent 125552fb19
commit 231097960c
1 changed files with 2 additions and 0 deletions

View File

@ -346,12 +346,14 @@ STAGE$(1)_T_$(2)_H_$(3) := \
$$(Q)$$(call CFG_RUN_TARG,$(1), \
$$(CFG_VALGRIND_COMPILE$(1)) \
$$(HBIN$(1)_H_$(3))/rustc$$(X) \
--cfg stage$(1) \
$$(CFG_RUSTC_FLAGS) --target=$(2))
PERF_STAGE$(1)_T_$(2)_H_$(3) := \
$$(Q)$$(call CFG_RUN_TARG,$(1), \
$$(CFG_PERF_TOOL) \
$$(HBIN$(1)_H_$(3))/rustc$$(X) \
--cfg stage$(1) \
$$(CFG_RUSTC_FLAGS) --target=$(2))
endef