Skip to content

Commit ebe9b50

Browse files
committed
---
yaml --- r: 48127 b: refs/heads/incoming c: 995a019 h: refs/heads/master i: 48125: b881624 48123: 3e12845 48119: f29850b 48111: d5d5138 48095: e79e589 48063: 4dd6e8d 47999: 1d5ed14 47871: 0eda824 47615: 841a37f 47103: f0d6e8a v: v3
1 parent 1207267 commit ebe9b50

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 23eb1058959c45fedce7a4a6e47b730caf7d8870
9+
refs/heads/incoming: 995a019dffc9c0b91392f2afe0be5685be045c2f
1010
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/mk/install.mk

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ PREFIX_ROOT = $(CFG_PREFIX)
3030
PREFIX_BIN = $(PREFIX_ROOT)/bin
3131
PREFIX_LIB = $(PREFIX_ROOT)/$(CFG_LIBDIR)
3232

33-
define INSTALL_TARGET_N
33+
define INSTALL_PREPARE_N
3434
# $(1) is the target triple
3535
# $(2) is the host triple
3636

@@ -43,6 +43,24 @@ PTR$(1)$(2) = $$(PREFIX_LIB)/rustc/$(1)
4343
PTB$(1)$(2) = $$(PTR$(1)$(2))/bin
4444
PTL$(1)$(2) = $$(PTR$(1)$(2))/$(CFG_LIBDIR)
4545

46+
endef
47+
48+
$(foreach target,$(CFG_TARGET_TRIPLES), \
49+
$(eval $(call INSTALL_PREPARE_N,$(target),$(CFG_BUILD_TRIPLE))))
50+
51+
define INSTALL_TARGET_N
52+
install-target-$(1)-host-$(2): $$(TSREQ$$(ISTAGE)_T_$(1)_H_$(2)) $$(SREQ$$(ISTAGE)_T_$(1)_H_$(2))
53+
$$(Q)mkdir -p $$(PTL$(1)$(2))
54+
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(CFG_RUNTIME_$(1)))
55+
$$(Q)$$(call INSTALL_LIB, \
56+
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(CORELIB_GLOB_$(1)))
57+
$$(Q)$$(call INSTALL_LIB, \
58+
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(STDLIB_GLOB_$(1)))
59+
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),libmorestack.a)
60+
61+
endef
62+
63+
define INSTALL_HOST_N
4664
install-target-$(1)-host-$(2): $$(CSREQ$$(ISTAGE)_T_$(1)_H_$(2))
4765
$$(Q)mkdir -p $$(PTL$(1)$(2))
4866
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(CFG_RUNTIME_$(1)))
@@ -67,7 +85,9 @@ install-target-$(1)-host-$(2): $$(CSREQ$$(ISTAGE)_T_$(1)_H_$(2))
6785
endef
6886

6987
$(foreach target,$(CFG_TARGET_TRIPLES), \
70-
$(eval $(call INSTALL_TARGET_N,$(target),$(CFG_BUILD_TRIPLE))))
88+
$(if $(findstring $(target), $(CFG_BUILD_TRIPLE)), \
89+
$(eval $(call INSTALL_HOST_N,$(target),$(CFG_BUILD_TRIPLE))), \
90+
$(eval $(call INSTALL_TARGET_N,$(target),$(CFG_BUILD_TRIPLE)))))
7191

7292
INSTALL_TARGET_RULES = $(foreach target,$(CFG_TARGET_TRIPLES), \
7393
install-target-$(target)-host-$(CFG_BUILD_TRIPLE))

0 commit comments

Comments
 (0)