make convenient rustc targets

This commit is contained in:
Niko Matsakis 2011-12-02 16:04:27 -08:00
parent 9acc2bfcad
commit 3bbfe515df
1 changed files with 20 additions and 2 deletions

View File

@ -324,6 +324,25 @@ $(foreach build,$(CFG_TARGET_TRIPLES), \
$(eval $(foreach stage,$(STAGES), \
$(eval $(call SREQ,$(stage),$(target),$(build))))))))
######################################################################
# rustc-H-targets
#
# Builds a functional Rustc for the given host.
######################################################################
define DEF_RUSTC_TARGET
# $(1) == architecture
rustc-H-$(1): \
$$(foreach target,$$(CFG_TARGET_TRIPLES), \
$$(SREQ3_T_$$(target)_H_$(1)))
endef
$(foreach host,$(CFG_TARGET_TRIPLES), \
$(eval $(call DEF_RUSTC_TARGET,$(host))))
all-rustcs: $(foreach host,$(CFG_TARGET_TRIPLES),rustc-H-$(host))
######################################################################
# Entrypoint rule
######################################################################
@ -345,8 +364,7 @@ TSREQS := \
FUZZ := $(HBIN3_H_$(CFG_HOST_TRIPLE))/fuzzer$(X)
CARGO := $(HBIN3_H_$(CFG_HOST_TRIPLE))/cargo$(X)
#all: $(SREQ3$(CFG_HOST_TRIPLE)) $(GENERATED) $(DOCS) $(FUZZ)
all: $(TSREQS) $(GENERATED) $(DOCS) $(FUZZ) $(CARGO)
all: rustc-H-$(CFG_HOST_TRIPLE) $(GENERATED) $(DOCS) $(FUZZ) $(CARGO)
endif