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
This commit is contained in:
Marijn Haverbeke 2011-07-27 11:34:39 +02:00
parent 8c821ff038
commit b0059bd357
2 changed files with 5 additions and 3 deletions

View file

@ -120,7 +120,10 @@ def make_snapshot(stage):
tar = tarfile.open(file0, "w:bz2")
for name in snapshot_files[kernel]:
tar.add(os.path.join(stage, name),
dir = stage
if stage == "stage1" and re.match(r"^lib/(lib)?std.*", name):
dir = "stage0"
tar.add(os.path.join(dir, name),
"rust-stage0/" + name)
tar.close()