Skip to content

Commit 15d6032

Browse files
committed
helpful targets
1 parent 84bbc12 commit 15d6032

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

Makefile.in

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,24 @@ $(foreach build,$(CFG_TARGET_TRIPLES), \
353353
# Builds a functional Rustc for the given host.
354354
######################################################################
355355

356-
define DEF_RUSTC_TARGET
356+
define DEF_RUSTC_STAGE_TARGET
357357
# $(1) == architecture
358+
# $(2) == stage
358359

359-
rustc-H-$(1): \
360+
rustc-stage$(2)-H-$(1): \
360361
$$(foreach target,$$(CFG_TARGET_TRIPLES), \
361-
$$(SREQ3_T_$$(target)_H_$(1)))
362+
$$(SREQ$(2)_T_$$(target)_H_$(1)))
363+
364+
endef
365+
366+
$(foreach host,$(CFG_TARGET_TRIPLES), \
367+
$(eval $(foreach stage,1 2 3, \
368+
$(eval $(call DEF_RUSTC_STAGE_TARGET,$(host),$(stage))))))
369+
370+
define DEF_RUSTC_TARGET
371+
# $(1) == architecture
372+
373+
rustc-H-$(1): rustc-stage3-H-$(1)
362374
endef
363375

364376
$(foreach host,$(CFG_TARGET_TRIPLES), \

0 commit comments

Comments
 (0)