Add lib/main.o to snapshot

Snapshotting main.o is going to make it easier (I think) to convert main to
use ivecs
This commit is contained in:
Brian Anderson 2011-08-14 12:04:11 -07:00
parent 0340f32748
commit 1dbf0965a1
3 changed files with 14 additions and 5 deletions

View File

@ -1,15 +1,15 @@
snap-stage1: stage1/rustc$(X) stage1/lib/glue.o stage1/lib/$(CFG_RUNTIME) \
stage1/$(CFG_RUSTLLVM)
stage1/$(CFG_RUSTLLVM) stage1/lib/main.o
$(S)src/etc/make-snapshot.py stage1
snap-stage2: stage2/rustc$(X) stage2/lib/glue.o stage2/lib/$(CFG_STDLIB) \
stage2/lib/libstd.rlib stage2/lib/$(CFG_RUNTIME) \
stage2/$(CFG_RUSTLLVM)
stage2/$(CFG_RUSTLLVM) stage2/lib/main.o
$(S)src/etc/make-snapshot.py stage2
snap-stage3: stage3/rustc$(X) stage3/lib/glue.o stage3/lib/$(CFG_STDLIB) \
stage3/lib/libstd.rlib stage3/lib/$(CFG_RUNTIME) \
stage3/$(CFG_RUSTLLVM)
stage3/$(CFG_RUSTLLVM) stage3/lib/main.o
$(S)src/etc/make-snapshot.py stage3

View File

@ -9,7 +9,7 @@ def unpack_snapshot(snap):
print("opening snapshot " + dl_path)
tar = tarfile.open(dl_path)
kernel = get_kernel()
for name in snapshot_files[kernel]:
for name in old_snapshot_files[kernel]:
p = "rust-stage0/" + name
fp = os.path.join("stage0", name)
print("extracting " + fp)

View File

@ -15,7 +15,7 @@ download_url_base = "http://dl.rust-lang.org/stage0-snapshots"
download_dir_base = "dl"
download_unpack_base = os.path.join(download_dir_base, "unpack")
snapshot_files = {
old_snapshot_files = {
"linux": ["rustc", "lib/glue.o", "lib/libstd.so",
"librustrt.so", "librustllvm.so", "lib/intrinsics.bc"],
"macos": ["rustc", "lib/glue.o", "lib/libstd.dylib",
@ -24,6 +24,15 @@ snapshot_files = {
"rustrt.dll", "rustllvm.dll", "lib/intrinsics.bc"]
}
snapshot_files = {
"linux": ["rustc", "lib/glue.o", "lib/libstd.so", "lib/main.o",
"librustrt.so", "librustllvm.so", "lib/intrinsics.bc"],
"macos": ["rustc", "lib/glue.o", "lib/libstd.dylib", "lib/main.o",
"librustrt.dylib", "librustllvm.dylib", "lib/intrinsics.bc"],
"winnt": ["rustc.exe", "lib/glue.o", "lib/std.dll", "lib/main.o"
"rustrt.dll", "rustllvm.dll", "lib/intrinsics.bc"]
}
def parse_line(n, line):
global snapshotfile