Skip to content

Commit 2269ab9

Browse files
committed
---
yaml --- r: 144613 b: refs/heads/try2 c: b1a2251 h: refs/heads/master i: 144611: c4f26d7 v: v3
1 parent 983148d commit 2269ab9

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: f61713a5eb91b7cb9d11405e1bb1c7d94504a41b
8+
refs/heads/try2: b1a22518f0c687db008c4abf5e8e0411fb58c2f5
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/mk/stage0.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ $(HBIN0_H_$(CFG_BUILD_TRIPLE))/:
66
$(HLIB0_H_$(CFG_BUILD_TRIPLE))/:
77
mkdir -p $@
88

9-
$(HBIN0_H_$(CFG_BUILD_TRIPLE))/rustc$(X_$(CFG_BUILD_TRIPLE)): \
9+
SNAPSHOT_RUSTC_POST_CLEANUP=$(HBIN0_H_$(CFG_BUILD_TRIPLE))/rustc$(X_$(CFG_BUILD_TRIPLE))
10+
11+
$(SNAPSHOT_RUSTC_POST_CLEANUP): \
1012
$(S)src/snapshots.txt \
1113
$(S)src/etc/get-snapshot.py $(MKFILE_DEPS) \
1214
| $(HBIN0_H_$(CFG_BUILD_TRIPLE))/

branches/try2/mk/target.mk

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,28 @@ WFLAGS_ST2 = -D warnings
2727
# $(2) is the target triple
2828
# $(3) is the host triple
2929

30+
# Every recipe in TARGET_STAGE_N outputs to $$(TLIB$(1)_T_$(2)_H_$(3),
31+
# a directory that can be cleaned out during the middle of a run of
32+
# the get-snapshot.py script. Therefore, every recipe needs to have
33+
# an order-only dependency either on $(SNAPSHOT_RUSTC_POST_CLEANUP) or
34+
# on $$(TSREQ$(1)_T_$(2)_H_$(3)), to ensure that no products will be
35+
# put into the target area until after the get-snapshot.py script has
36+
# had its chance to clean it out; otherwise the other products will be
37+
# inadvertantly included in the clean out.
3038

3139
define TARGET_STAGE_N
3240

3341
$$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a: \
3442
rt/$(2)/stage$(1)/arch/$$(HOST_$(2))/libmorestack.a \
3543
| $$(TLIB$(1)_T_$(2)_H_$(3))/ \
36-
$(HBIN0_H_$(CFG_BUILD_TRIPLE))/rustc$(X_$(CFG_BUILD_TRIPLE))
44+
$(SNAPSHOT_RUSTC_POST_CLEANUP)
3745
@$$(call E, cp: $$@)
3846
$$(Q)cp $$< $$@
3947

4048
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUNTIME_$(2)): \
4149
rt/$(2)/stage$(1)/$(CFG_RUNTIME_$(2)) \
4250
| $$(TLIB$(1)_T_$(2)_H_$(3))/ \
43-
$(HBIN0_H_$(CFG_BUILD_TRIPLE))/rustc$(X_$(CFG_BUILD_TRIPLE))
51+
$(SNAPSHOT_RUSTC_POST_CLEANUP)
4452
@$$(call E, cp: $$@)
4553
$$(Q)cp $$< $$@
4654

@@ -80,7 +88,7 @@ ifneq ($$(findstring $(2),$$(CFG_HOST_TRIPLES)),)
8088
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_RUSTLLVM_$(3)): \
8189
rustllvm/$(2)/$(CFG_RUSTLLVM_$(3)) \
8290
| $$(TLIB$(1)_T_$(2)_H_$(3))/ \
83-
$(HBIN0_H_$(CFG_BUILD_TRIPLE))/rustc$(X_$(CFG_BUILD_TRIPLE))
91+
$(SNAPSHOT_RUSTC_POST_CLEANUP)
8492
@$$(call E, cp: $$@)
8593
$$(Q)cp $$< $$@
8694

0 commit comments

Comments
 (0)