@@ -351,13 +351,13 @@ TSREQ$(1)_T_$(2)_H_$(3) = \
351
351
$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$$(CFG_RUNTIME ) \
352
352
$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /libmorestack.a
353
353
354
- # Prerequisites for a working stageN compiler and libraries
354
+ # Prerequisites for a working stageN compiler and libraries, for a specific target
355
355
SREQ$(1 ) _T_$(2 ) _H_$(3 ) = \
356
356
$$(TSREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
357
357
$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$$(CFG_CORELIB ) \
358
358
$$(TLIB$(1 ) _T_$(2 ) _H_$(3 ) ) /$$(CFG_STDLIB )
359
359
360
- # Prerequisites for a working stageN compiler and libraries
360
+ # Prerequisites for a working stageN compiler and libraries, for a specific target
361
361
CSREQ$(1 ) _T_$(2 ) _H_$(3 ) = \
362
362
$$(TSREQ$(1 ) _T_$(2 ) _H_$(3 ) ) \
363
363
$$(HBIN$(1 ) _H_$(3 ) ) /fuzzer$$(X ) \
@@ -472,11 +472,22 @@ CFG_INFO := $(info cfg: *** compiler is in snapshot transition ***)
472
472
CFG_INFO := $(info cfg: *** stage2 and later will not be built *** )
473
473
CFG_INFO := $(info cfg:)
474
474
475
+ # XXX This is surely busted
475
476
all : $(SREQ1$(CFG_HOST_TRIPLE ) ) $(GENERATED ) docs
476
477
477
478
else
478
479
479
- all : $(CSREQ3$(CFG_HOST_TRIPLE ) ) $(GENERATED ) docs
480
+ define ALL_TARGET_N
481
+ all-target-$(1 ) -host-$(2 ) : $$(CSREQ2_T_$(1 ) _H_$(2 ) )
482
+ endef
483
+
484
+ $(foreach target,$(CFG_TARGET_TRIPLES), \
485
+ $(eval $(call ALL_TARGET_N,$(target),$(CFG_HOST_TRIPLE))))
486
+
487
+ ALL_TARGET_RULES = $(foreach target,$(CFG_TARGET_TRIPLES ) , \
488
+ all-target-$(target ) -host-$(CFG_HOST_TRIPLE ) )
489
+
490
+ all : $(ALL_TARGET_RULES ) $(GENERATED ) docs
480
491
481
492
endif
482
493
0 commit comments