Skip to content

Commit 25b85df

Browse files
committed
Register new snapshots
Use main.o from the snapshot
1 parent 83128f4 commit 25b85df

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

mk/stage0.mk

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ stage0/$(CFG_RUSTLLVM): stage0/rustc$(X)
2222
stage0/lib/glue.o: stage0/rustc$(X)
2323
$(Q)touch $@
2424

25-
# FIXME: temporary hack: currently not distributing main.o like we should;
26-
# copying from rt
27-
28-
stage0/lib/main.o: rt/main.o
29-
$(Q)cp $< $@
25+
stage0/lib/main.o: stage0/rustc$(X)
26+
$(Q)touch $@
3027

3128
# Instantiate template (in stageN.mk) for building
3229
# stage0/lib/$(CFG_STDLIB) and stage0/lib/libstd.rlib.

src/etc/get-snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def unpack_snapshot(snap):
99
print("opening snapshot " + dl_path)
1010
tar = tarfile.open(dl_path)
1111
kernel = get_kernel()
12-
for name in old_snapshot_files[kernel]:
12+
for name in snapshot_files[kernel]:
1313
p = "rust-stage0/" + name
1414
fp = os.path.join("stage0", name)
1515
print("extracting " + fp)

src/etc/snapshot.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ def scrub(b):
1515
download_dir_base = "dl"
1616
download_unpack_base = os.path.join(download_dir_base, "unpack")
1717

18-
old_snapshot_files = {
19-
"linux": ["rustc", "lib/glue.o", "lib/libstd.so",
20-
"librustrt.so", "librustllvm.so", "lib/intrinsics.bc"],
21-
"macos": ["rustc", "lib/glue.o", "lib/libstd.dylib",
22-
"librustrt.dylib", "librustllvm.dylib", "lib/intrinsics.bc"],
23-
"winnt": ["rustc.exe", "lib/glue.o", "lib/std.dll",
24-
"rustrt.dll", "rustllvm.dll", "lib/intrinsics.bc"]
25-
}
26-
2718
snapshot_files = {
2819
"linux": ["rustc", "lib/glue.o", "lib/libstd.so", "lib/main.o",
2920
"librustrt.so", "librustllvm.so", "lib/intrinsics.bc"],

src/snapshots.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
S 2011-08-14 83128f4
2+
linux-i386 8074d0b9d2a2f5084e4920a72262af28d0521b66
3+
macos-i386 8e52161f00f24de345d727a1671bb20597165687
4+
winnt-i386 0a4b419ed326b9da80a93d6d23db24a40bb37c8b
5+
16
S 2011-08-09 e5533a5
27
linux-i386 6fedd9943689fa3457e77e62d0f8b100fecfe69c
38
macos-i386 f87e7dc9d27856ee39eea9a2c44b6b4d25113ac5

0 commit comments

Comments
 (0)