Skip to content

Commit 5292231

Browse files
committed
---
yaml --- r: 3067 b: refs/heads/master c: 8d7f7c2 h: refs/heads/master i: 3065: 435b6b3 3063: e121844 v: v3
1 parent 41f0067 commit 5292231

File tree

3 files changed

+13
-28
lines changed

3 files changed

+13
-28
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: 9ae843ab1c77b9c5cca03b452d5926a0fccf3197
2+
refs/heads/master: 8d7f7c2a9773484968dce12cd844f7eded25ed4a

trunk/mk/stage3.mk

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ stage3/std.o: $(STDLIB_CRATE) $(STDLIB_INPUTS) \
44
@$(call E, compile: $@)
55
$(STAGE2) -c --shared -o $@ $<
66

7-
stage3/$(CFG_STDLIB): stage3/std.o stage3/glue.o
7+
stage3/$(CFG_STDLIB): stage2/std.o stage2/glue.o
88
@$(call E, link: $@)
9-
$(Q)gcc $(CFG_GCCISH_CFLAGS) stage3/glue.o $(CFG_GCCISH_LINK_FLAGS) -o \
10-
$@ $< -Lstage3 -Lrt -lrustrt
9+
$(Q)gcc $(CFG_GCCISH_CFLAGS) stage2/glue.o $(CFG_GCCISH_LINK_FLAGS) -o \
10+
$@ $< -Lstage2 -Lrt -lrustrt
1111

1212
stage3/librustc.o: $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2)
1313
@$(call E, compile: $@)
1414
$(STAGE2) -c --shared -o $@ $<
1515

16-
stage3/$(CFG_RUSTCLIB): stage3/librustc.o stage3/glue.o
16+
stage3/$(CFG_RUSTCLIB): stage2/librustc.o stage2/glue.o
1717
@$(call E, link: $@)
18-
$(Q)gcc $(CFG_GCCISH_CFLAGS) stage3/glue.o $(CFG_GCCISH_LINK_FLAGS) \
19-
-o $@ $< -Lstage3 -Lrustllvm -Lrt -lrustrt -lrustllvm -lstd
18+
$(Q)gcc $(CFG_GCCISH_CFLAGS) stage2/glue.o $(CFG_GCCISH_LINK_FLAGS) \
19+
-o $@ $< -Lstage2 -Lrustllvm -Lrt -lrustrt -lrustllvm -lstd
2020

2121
stage3/glue.o: stage2/rustc$(X) stage2/$(CFG_STDLIB) stage2/intrinsics.bc \
2222
rustllvm/$(CFG_RUSTLLVM) rt/$(CFG_RUNTIME)
@@ -40,7 +40,3 @@ stage3/%.o: stage3/%.s
4040
stage3/%$(X): $(COMPILER_CRATE) $(COMPILER_INPUTS) $(SREQ2)
4141
@$(call E, compile_and_link: $@)
4242
$(STAGE2) -o $@ $<
43-
@# dsymutil sometimes fails or prints a warning, but the
44-
@# program still runs. Since it simplifies debugging other
45-
@# programs, I\'ll live with the noise.
46-
-$(Q)$(CFG_DSYMUTIL) $@

trunk/mk/tests.mk

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,13 @@ compile-check: tidy \
200200
@# programs, I\'ll live with the noise.
201201
-$(Q)$(CFG_DSYMUTIL) $@
202202

203-
%.stage2$(X): %.stage2.o $(SREQ2)
204-
@$(call E, link [gcc]: $@)
205-
$(Q)gcc $(CFG_GCCISH_CFLAGS) stage3/glue.o -o $@ $< \
206-
-Lstage3 -Lrt rt/main.o -lrustrt -lstd -lm
207-
@# dsymutil sometimes fails or prints a warning, but the
208-
@# program still runs. Since it simplifies debugging other
209-
@# programs, I\'ll live with the noise.
210-
-$(Q)$(CFG_DSYMUTIL) $@
203+
%.stage2$(X): %.rs $(SREQ2)
204+
@$(call E, compile_and_link: $@)
205+
$(STAGE2) -o $@ $<
211206

207+
%.stage2$(X): %.rc $(SREQ2)
208+
@$(call E, compile_and_link: $@)
209+
$(STAGE2) -o $@ $<
212210

213211
%.stage0.o: %.rc $(SREQ0)
214212
@$(call E, compile [stage0]: $@)
@@ -227,15 +225,6 @@ compile-check: tidy \
227225
@$(call E, compile [stage1]: $@)
228226
$(STAGE1) -c -o $@ $<
229227

230-
231-
%.stage2.o: %.rc $(SREQ2)
232-
@$(call E, compile [stage2]: $@)
233-
$(STAGE2) -c -o $@ $<
234-
235-
%.stage2.o: %.rs $(SREQ2)
236-
@$(call E, compile [stage2]: $@)
237-
$(STAGE2) -c -o $@ $<
238-
239228
# Cancel the implicit .out rule in GNU make.
240229
%.out: %
241230

0 commit comments

Comments
 (0)