Skip to content

Commit dbe5dc9

Browse files
committed
Attempt to shift build to stage0-from-snapshots.
1 parent 54bfe8e commit dbe5dc9

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ probe_need CFG_GIT git
188188
probe_need CFG_OCAMLC ocamlc
189189
probe_need CFG_PERL perl
190190
probe_need CFG_PYTHON python
191+
probe_need CFG_CURL curl
191192

192193
probe CFG_LLVM_CONFIG llvm-config
193194
probe CFG_VALGRIND valgrind

mk/stage0.mk

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
stage0/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
2-
boot/rustboot$(X) $(MKFILES)
3-
@$(call E, compile: $@)
4-
$(BOOT) -shared -o $@ $<
1+
stage0/rustc$(X): $(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES)
2+
@$(call E, fetch: $@)
3+
$(S)src/etc/get-snapshot.py
54

6-
stage0/rustc$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(BREQ)
7-
@$(call E, compile: $@)
8-
$(BOOT) -minimal -o $@ $<
9-
$(Q)chmod 0755 $@
5+
# These two will be made in the process of making rustc above.
6+
7+
stage0/glue.o: stage0/rustc$(X)
8+
9+
stage0/$(CFG_STDLIB): stage0/rustc$(X)

mk/stage1.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
stage1/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) stage0/rustc$(X) $(MKFILES)
1+
stage1/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) \
2+
stage0/rustc$(X) stage0/$(CFG_STDLIB) $(LREQ) $(MKFILES)
23
@$(call E, compile: $@)
34
$(STAGE0) -c --shared -o $@ $<
45

@@ -11,8 +12,7 @@ stage1/rustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ0)
1112
@$(call E, compile: $@)
1213
$(STAGE0) -c -o $@ $<
1314

14-
stage1/glue.o: stage0/rustc$(X) stage0/$(CFG_STDLIB) \
15-
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
15+
stage1/glue.o: stage0/rustc$(X) stage0/$(CFG_STDLIB) $(LREQ) $(MKFILES)
1616
@$(call E, generate: $@)
1717
$(STAGE0) -c -o $@ --glue
1818

src/etc/snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def scrub(b):
1010
if not src_dir:
1111
raise Exception("missing env var CFG_SRC_DIR")
1212

13-
snapshotfile = os.path.join(src_dir, "snapshots.txt")
13+
snapshotfile = os.path.join(src_dir, "src", "snapshots.txt")
1414
download_url_base = "http://dl.rust-lang.org/stage0-snapshots"
1515
download_dir_base = "dl"
1616
download_unpack_base = os.path.join(download_dir_base, "unpack")

src/snapshots.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
S 2011-05-02 ed40c85
2-
linux-i386 de76e0930be363af87e32ba65e3d6b1284633550
3-
winnt-i386 e69c11fbc62639ac3a3eef7ea36c9ad77209e2b1
1+
S 2011-05-03 54bfe8e
2+
linux-i386 1e831f0904acf20c24e5ee944be61b8665a45c31
3+
macos-i386 eb20970d6ca784a9a7768a7eb1ce7d8f4af96fc9
4+
winnt-i386 2799f8ab1fdc45a706f530e1552cbfcd07116edb
45

56
S 2011-04-29 7b95b5c
67
linux-i386 f0e166816ce34adc9f7202bd3cfbd80623505f28

0 commit comments

Comments
 (0)