Skip to content

Commit 26ac82b

Browse files
committed
---
yaml --- r: 7922 b: refs/heads/snap-stage3 c: 9db1d16 h: refs/heads/master v: v3
1 parent 3707459 commit 26ac82b

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 3a5c75eff9c948df1863e3ff19e3e86169af4243
4+
refs/heads/snap-stage3: 9db1d16f610cae5611dc07a0b65daef69f435274
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/mk/install.mk

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ install-target-$(1)-host-$(2): $$(SREQ$$(ISTAGE)_T_$(1)_H_$(2))
4444
$$(TL$(1)$(2)),$$(PTL$(1)$(2)),$$(LIBRUSTC_GLOB))
4545
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),intrinsics.bc)
4646
$$(Q)$$(call INSTALL,$$(TL$(1)$(2)),$$(PTL$(1)$(2)),libmorestack.a)
47+
4748
endef
4849

4950
$(foreach target,$(CFG_TARGET_TRIPLES), \
@@ -80,3 +81,23 @@ install-host: $(SREQ$(ISTAGE)_T_$(CFG_HOST_TRIPLE)_H_$(CFG_HOST_TRIPLE))
8081
$(PREFIX_ROOT)/share/man/man1,rustc.1)
8182

8283
install-targets: $(INSTALL_TARGET_RULES)
84+
85+
86+
HOST_LIB_FROM_HL_GLOB = \
87+
$(patsubst $(HL)/%,$(PHL)/%,$(wildcard $(HL)/$(1)))
88+
89+
uninstall:
90+
$(Q)rm -f $(PHB)/rustc$(X)
91+
$(Q)rm -f $(PHB)/cargo$(X)
92+
$(Q)rm -f $(PHB)/rustdoc$(X)
93+
$(Q)rm -f $(PHL)/$(CFG_RUSTLLVM)
94+
$(Q)rm -f $(PHL)/$(CFG_RUNTIME)
95+
$(Q)for i in \
96+
$(call HOST_LIB_FROM_HL_GLOB,$(CORELIB_GLOB)) \
97+
$(call HOST_LIB_FROM_HL_GLOB,$(STDLIB_GLOB)) \
98+
$(call HOST_LIB_FROM_HL_GLOB,$(LIBRUSTC_GLOB)) \
99+
; \
100+
do rm -f $$i ; \
101+
done
102+
$(Q)rm -Rf $(PHL)/rustc
103+
$(Q)rm -f $(PREFIX_ROOT)/share/man/man1/rustc.1

0 commit comments

Comments
 (0)