Skip to content

Commit ad7fff4

Browse files
committed
---
yaml --- r: 3413 b: refs/heads/master c: d5fc01c h: refs/heads/master i: 3411: b489526 v: v3
1 parent da9e1ab commit ad7fff4

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
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: 926049edddb6a990f22658205a2f3d467d0e4475
2+
refs/heads/master: d5fc01caefed33c9633e8d26f4901f3e34a21f48

trunk/mk/stage1.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ stage1/lib/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
44
@$(call E, compile_and_link: $@)
55
$(STAGE1) --shared -o $@ $<
66

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

12+
stage1/glue.o: stage1/lib/glue.o
13+
cp stage1/lib/glue.o stage1/glue.o
14+
1215
stage1/intrinsics.bc: $(INTRINSICS_BC)
1316
@$(call E, cp: $@)
1417
$(Q)cp $< $@

trunk/mk/stage2.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ stage2/lib/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
44
@$(call E, compile_and_link: $@)
55
$(STAGE2) --shared -o $@ $<
66

7-
stage2/glue.o: stage2/rustc$(X) stage1/lib/$(CFG_STDLIB) stage2/intrinsics.bc \
8-
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
7+
stage2/lib/glue.o: stage2/rustc$(X) stage1/lib/$(CFG_STDLIB) \
8+
stage2/intrinsics.bc rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
99
@$(call E, generate: $@)
1010
$(STAGE2) -c -o $@ --glue
1111

12+
stage2/glue.o: stage2/lib/glue.o
13+
cp stage2/lib/glue.o stage2/glue.o
14+
1215
stage2/intrinsics.bc: $(INTRINSICS_BC)
1316
@$(call E, cp: $@)
1417
$(Q)cp $< $@

trunk/mk/stage3.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ stage3/lib/$(CFG_STDLIB): $(STDLIB_CRATE) $(STDLIB_INPUTS) \
44
@$(call E, compile_and_link: $@)
55
$(STAGE3) --shared -o $@ $<
66

7-
stage3/glue.o: stage3/rustc$(X) stage2/lib/$(CFG_STDLIB) stage3/intrinsics.bc \
8-
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
7+
stage3/lib/glue.o: stage3/rustc$(X) stage2/lib/$(CFG_STDLIB) \
8+
stage3/intrinsics.bc rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
99
@$(call E, generate: $@)
1010
$(STAGE3) -c -o $@ --glue
1111

12+
stage3/glue.o: stage3/lib/glue.o
13+
cp stage3/lib/glue.o stage3/glue.o
14+
1215
stage3/intrinsics.bc: $(INTRINSICS_BC)
1316
@$(call E, cp: $@)
1417
$(Q)cp $< $@

trunk/src/comp/driver/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ fn main(vec[str] args) {
393393
//
394394
// TODO: Factor this out of main.
395395
if (sopts.output_type == link::output_type_exe) {
396-
let str glu = binary_dir + "/glue.o";
396+
let str glu = binary_dir + "/lib/glue.o";
397397
let str main = "rt/main.o";
398398
let str stage = "-L" + binary_dir + "/lib";
399399
let vec[str] gcc_args;

0 commit comments

Comments
 (0)