Skip to content

Commit b0059bd

Browse files
committed
Hack to make snap-stage1 actually build incompatible changes
You can't build libstd both with stage0 and stage1 if the two are incompatible This is probably temporary
1 parent 8c821ff commit b0059bd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

mk/snap.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

2-
snap-stage1: stage1/rustc$(X) stage1/lib/glue.o stage1/lib/$(CFG_STDLIB) \
3-
stage1/lib/libstd.rlib stage1/lib/$(CFG_RUNTIME) \
2+
snap-stage1: stage1/rustc$(X) stage1/lib/glue.o stage1/lib/$(CFG_RUNTIME) \
43
stage1/$(CFG_RUSTLLVM)
54
$(S)src/etc/make-snapshot.py stage1
65

src/etc/snapshot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ def make_snapshot(stage):
120120

121121
tar = tarfile.open(file0, "w:bz2")
122122
for name in snapshot_files[kernel]:
123-
tar.add(os.path.join(stage, name),
123+
dir = stage
124+
if stage == "stage1" and re.match(r"^lib/(lib)?std.*", name):
125+
dir = "stage0"
126+
tar.add(os.path.join(dir, name),
124127
"rust-stage0/" + name)
125128
tar.close()
126129

0 commit comments

Comments
 (0)