Skip to content

Commit fa4a634

Browse files
committed
---
yaml --- r: 3071 b: refs/heads/master c: 7b5c3af h: refs/heads/master i: 3069: 1b9c8fd 3067: 5292231 3063: e121844 3055: 5221592 3039: f534350 3007: 28d49db 2943: 3f3608b 2815: 73ae07d 2559: 5deb7d9 2047: 92c572a v: v3
1 parent 3ddbffe commit fa4a634

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
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: f24408d89a4135d355dbd54c9a58ea591779edfb
2+
refs/heads/master: 7b5c3afae533e725d2eddb48df27117bdb820e15

trunk/mk/tests.mk

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

203-
%.stage2$(X): %.rs $(SREQ2)
204-
@$(call E, compile_and_link: $@)
205-
$(STAGE2) -o $@ $<
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) $@
206211

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

211213
%.stage0.o: %.rc $(SREQ0)
212214
@$(call E, compile [stage0]: $@)
@@ -225,6 +227,15 @@ compile-check: tidy \
225227
@$(call E, compile [stage1]: $@)
226228
$(STAGE1) -c -o $@ $<
227229

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+
228239
# Cancel the implicit .out rule in GNU make.
229240
%.out: %
230241

0 commit comments

Comments
 (0)