Skip to content

Commit 83991c4

Browse files
committed
Add the static std library in the next snapshot.
1 parent e440781 commit 83991c4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/etc/get-snapshot.py

+1-1
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

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ def scrub(b):
1515
download_dir_base = "dl"
1616
download_unpack_base = os.path.join(download_dir_base, "unpack")
1717

18-
snapshot_files = {
18+
old_snapshot_files = {
1919
"linux": ["rustc", "lib/glue.o", "lib/libstd.so" ],
2020
"macos": ["rustc", "lib/glue.o", "lib/libstd.dylib" ],
2121
"winnt": ["rustc.exe", "lib/glue.o", "lib/std.dll" ]
2222
}
2323

24+
snapshot_files = {
25+
"linux": ["rustc", "lib/glue.o", "lib/libstd.so", "lib/libstd.rlib" ],
26+
"macos": ["rustc", "lib/glue.o", "lib/libstd.dylib", "lib/libstd.rlib" ],
27+
"winnt": ["rustc.exe", "lib/glue.o", "lib/std.dll", "lib/libstd.rlib" ]
28+
}
29+
2430
def parse_line(n, line):
2531
global snapshotfile
2632

0 commit comments

Comments
 (0)