mirror of
https://github.com/rust-lang/rust
synced 2024-11-02 13:21:12 +00:00
build: Build crates with --cfg stageN. Use #[cfg(stageN)]
This commit is contained in:
parent
125552fb19
commit
231097960c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue