Skip to content

Commit 64595a5

Browse files
committed
Add rt and rustllvm to the snapshot
1 parent 4e45e58 commit 64595a5

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

mk/snap.mk

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11

22
snap-stage1: stage1/rustc$(X) stage1/glue.o stage1/lib/$(CFG_STDLIB) \
3-
stage1/lib/libstd.rlib
3+
stage1/lib/libstd.rlib stage1/lib/$(CFG_RUNTIME) \
4+
stage1/lib/$(CFG_RUSTLLVM)
45
$(S)src/etc/make-snapshot.py stage1
56

67
snap-stage2: stage2/rustc$(X) stage2/glue.o stage2/lib/$(CFG_STDLIB) \
7-
stage2/lib/libstd.rlib
8+
stage2/lib/libstd.rlib stage2/lib/$(CFG_RUNTIME) \
9+
stage2/lib/$(CFG_RUSTLLVM)
810
$(S)src/etc/make-snapshot.py stage2
911

1012
snap-stage3: stage3/rustc$(X) stage3/glue.o stage3/lib/$(CFG_STDLIB) \
11-
stage3/lib/libstd.rlib
13+
stage3/lib/libstd.rlib stage3/lib/$(CFG_RUNTIME) \
14+
stage3/lib/$(CFG_RUSTLLVM)
1215
$(S)src/etc/make-snapshot.py stage3
1316

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 snapshot_files[kernel]:
12+
for name in old_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: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,22 @@ def scrub(b):
1515
download_dir_base = "dl"
1616
download_unpack_base = os.path.join(download_dir_base, "unpack")
1717

18-
snapshot_files = {
18+
# FIXME: This is transitional for moving rt/rustllvm into the snapshot
19+
old_snapshot_files = {
1920
"linux": ["rustc", "lib/glue.o", "lib/libstd.so", "lib/libstd.rlib" ],
2021
"macos": ["rustc", "lib/glue.o", "lib/libstd.dylib", "lib/libstd.rlib" ],
2122
"winnt": ["rustc.exe", "lib/glue.o", "lib/std.dll", "lib/libstd.rlib" ]
2223
}
2324

25+
snapshot_files = {
26+
"linux": ["rustc", "lib/glue.o", "lib/libstd.so", "lib/libstd.rlib",
27+
"lib/librustrt.so", "lib/librustllvm.so"],
28+
"macos": ["rustc", "lib/glue.o", "lib/libstd.dylib", "lib/libstd.rlib",
29+
"lib/librustrt.dylib", "lib/librustllvm.dylib"],
30+
"winnt": ["rustc.exe", "lib/glue.o", "lib/std.dll", "lib/libstd.rlib",
31+
"lib/rustrt.dll", "lib/rustllvm.dll"]
32+
}
33+
2434
def parse_line(n, line):
2535
global snapshotfile
2636

0 commit comments

Comments
 (0)