Skip to content

Commit c0f3d7d

Browse files
committed
---
yaml --- r: 2524 b: refs/heads/master c: ae784df h: refs/heads/master v: v3
1 parent e02f673 commit c0f3d7d

File tree

5 files changed

+30
-9
lines changed

5 files changed

+30
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: fac13425138bdadae8ab738efa538641af33c12e
2+
refs/heads/master: ae784df3ce0c354fde00a6d9a4a50d642bdb3560

trunk/Makefile.in

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,25 @@ LLVM_AS := $(CFG_LLVM_BINDIR)/llvm-as
165165
# Single-target rules
166166
######################################################################
167167

168+
ifneq ($(CFG_IN_TRANSITION),)
169+
170+
CFG_INFO := $(info cfg: *** compiler is in snapshot transition ***)
171+
CFG_INFO := $(info cfg: *** stage2 and later will not be built ***)
172+
173+
all: rt/$(CFG_RUNTIME) \
174+
rustllvm/$(CFG_RUSTLLVM) \
175+
stage0/$(CFG_STDLIB) \
176+
stage0/intrinsics.bc \
177+
stage0/rustc$(X) \
178+
$(GENERATED) \
179+
$(DOCS) \
180+
stage1/$(CFG_STDLIB) \
181+
stage1/intrinsics.bc \
182+
stage1/glue.o \
183+
stage1/rustc$(X) \
184+
185+
else
186+
168187
all: rt/$(CFG_RUNTIME) \
169188
rustllvm/$(CFG_RUSTLLVM) \
170189
stage0/$(CFG_STDLIB) \
@@ -185,12 +204,14 @@ all: rt/$(CFG_RUNTIME) \
185204
stage3/intrinsics.bc \
186205
stage3/rustc$(X)
187206

207+
endif
208+
188209

189210
######################################################################
190211
# Re-configuration
191212
######################################################################
192213

193-
config.mk: $(S)configure $(S)Makefile.in
214+
config.mk: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
194215
@$(call E, cfg: reconfiguring)
195216
$(S)configure $(CFG_CONFIGURE_ARGS)
196217

trunk/configure

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ then
217217
err "either clang or gcc is required"
218218
fi
219219

220+
if head -n 1 ${CFG_SRC_DIR}src/snapshots.txt | grep -q '^T'
221+
then
222+
CFG_IN_TRANSITION=1
223+
putvar CFG_IN_TRANSITION
224+
fi
225+
220226
# Valgrind is only reliable on Linux. On Windows it doesn't work at all, and
221227
# on the Mac the dynamic linker causes Valgrind to emit a huge stream of
222228
# errors.

trunk/src/etc/get-snapshot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ def determine_curr_snapshot_for_platform():
4141
parsed = parse_line(i, line)
4242
if (not parsed): continue
4343

44-
if parsed["type"] == "transition":
45-
raise Exception("working on a transition, not updating stage0")
46-
4744
if found_snap and parsed["type"] == "file":
4845
if parsed["platform"] == platform:
4946
hsh = parsed["hash"]

trunk/src/etc/snapshot.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ def parse_line(n, line):
3535
match = re.match(r"([ST]) (\d{4}-\d{2}-\d{2}) ([a-fA-F\d]+)\s*$", line);
3636
if (not match):
3737
raise Exception("%s:%d:E syntax error" % (snapshotfile, n))
38-
ttype = "snapshot"
39-
if (match.group(1) == "T"):
40-
ttype = "transition"
41-
return {"type": ttype,
38+
return {"type": "snapshot",
4239
"date": match.group(2),
4340
"rev": match.group(3)}
4441

0 commit comments

Comments
 (0)