Skip to content

Commit 63c5039

Browse files
committed
---
yaml --- r: 3223 b: refs/heads/master c: bd93e1a h: refs/heads/master i: 3221: 6b1faae 3219: 91c9cb9 3215: 9b497f4 v: v3
1 parent 47c9fe4 commit 63c5039

File tree

8 files changed

+16
-18
lines changed

8 files changed

+16
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: e0afcb400b7fcecc777f6ef6758f20d28af62ee3
2+
refs/heads/master: bd93e1abcda185e18a7e008a70ec2840397f94f4

trunk/Makefile.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/comp/, \
148148
######################################################################
149149

150150
LREQ := rt/$(CFG_RUNTIME) rustllvm/$(CFG_RUSTLLVM)
151-
SREQ0 := stage0/rustc$(X) $(LREQ) rt/main.o stage0/glue.o stage0/$(CFG_STDLIB)
151+
SREQ0 := stage0/rustc$(X) $(LREQ) rt/main.o stage0/glue.o \
152+
stage0/lib/$(CFG_STDLIB)
152153
SREQ1 := stage1/rustc$(X) $(LREQ) rt/main.o stage1/glue.o \
153154
stage1/lib/$(CFG_STDLIB)
154155
SREQ2 := stage2/rustc$(X) $(LREQ) rt/main.o stage2/glue.o \
@@ -184,7 +185,7 @@ CFG_INFO := $(info cfg:)
184185

185186
all: rt/$(CFG_RUNTIME) \
186187
rustllvm/$(CFG_RUSTLLVM) \
187-
stage0/$(CFG_STDLIB) \
188+
stage0/lib/$(CFG_STDLIB) \
188189
stage0/intrinsics.bc \
189190
stage0/rustc$(X) \
190191
$(GENERATED) \
@@ -198,7 +199,7 @@ else
198199

199200
all: rt/$(CFG_RUNTIME) \
200201
rustllvm/$(CFG_RUSTLLVM) \
201-
stage0/$(CFG_STDLIB) \
202+
stage0/lib/$(CFG_STDLIB) \
202203
stage0/intrinsics.bc \
203204
stage0/rustc$(X) \
204205
$(GENERATED) \

trunk/mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ clean:
2222
$(Q)rm -f $(C_DEPFILES:%.d=%.d.tmp)
2323
$(Q)rm -f $(CRATE_DEPFILES:%.d=%.d.tmp)
2424
$(Q)rm -f $(GENERATED)
25-
$(Q)rm -f stage0/rustc$(X) stage0/$(CFG_STDLIB)
25+
$(Q)rm -f stage0/rustc$(X) stage0/lib/$(CFG_STDLIB)
2626
$(Q)rm -f stage1/rustc$(X) stage1/lib/$(CFG_STDLIB) stage1/glue*
2727
$(Q)rm -f stage2/rustc$(X) stage2/lib/$(CFG_STDLIB) stage2/glue*
2828
$(Q)rm -f stage3/rustc$(X) stage3/lib/$(CFG_STDLIB) stage3/glue*

trunk/mk/stage0.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
stage0/rustc$(X): $(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES)
22
@$(call E, fetch: $@)
3+
mkdir -p stage0/lib
34
$(Q)$(S)src/etc/get-snapshot.py
45
$(Q)touch $@
56

@@ -8,7 +9,7 @@ stage0/rustc$(X): $(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES)
89
stage0/glue.o: stage0/rustc$(X)
910
$(Q)touch $@
1011

11-
stage0/$(CFG_STDLIB): stage0/rustc$(X)
12+
stage0/lib/$(CFG_STDLIB): stage0/rustc$(X)
1213
$(Q)touch $@
1314

1415
# TODO: Include as part of the snapshot.

trunk/mk/stage1.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
stage1/lib/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
2-
stage1/rustc$(X) stage0/$(CFG_STDLIB) stage1/intrinsics.bc \
2+
stage1/rustc$(X) stage0/lib/$(CFG_STDLIB) stage1/intrinsics.bc \
33
stage1/glue.o $(LREQ) $(MKFILES)
44
@$(call E, compile_and_link: $@)
55
mkdir -p stage1/lib
66
$(STAGE1) --shared -o $@ $<
77

8-
stage1/glue.o: stage1/rustc$(X) stage0/$(CFG_STDLIB) stage1/intrinsics.bc \
8+
stage1/glue.o: stage1/rustc$(X) stage0/lib/$(CFG_STDLIB) stage1/intrinsics.bc \
99
$(LREQ) $(MKFILES)
1010
@$(call E, generate: $@)
1111
$(STAGE1) -c -o $@ --glue

trunk/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)

trunk/src/etc/snapshot.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ def scrub(b):
2121
"winnt": ["rustc.exe", "glue.o", "lib/std.dll" ]
2222
}
2323

24-
# This is a transitional list of files so that the unpacker knows to
25-
# use the old directory layout and the snapshotter knows to use the
26-
# new directory layout
27-
old_snapshot_files = {
28-
"linux": ["rustc", "glue.o", "libstd.so" ],
29-
"macos": ["rustc", "glue.o", "libstd.dylib" ],
30-
"winnt": ["rustc.exe", "glue.o", "std.dll" ]
31-
}
32-
3324
def parse_line(n, line):
3425
global snapshotfile
3526

trunk/src/snapshots.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
S 2011-06-17 175fd8e
2+
linux-i386 ba92b05deee82f2d8f954cf014de1faec1167e36
3+
macos-i386 6bacf4769deda26b614b4ba36bcb46f65649cce0
4+
winnt-i386 057c6ae72ec2059806e33bc3578c71534779eac5
5+
16
S 2011-06-16 15f71b3
27
linux-i386 c81ac692140484ee8944ab50ca69347abdca30b4
38
macos-i386 ac27541e4438956cb29bd70c8d353c487a315634

0 commit comments

Comments
 (0)