Skip to content

Commit 9286ebc

Browse files
committed
---
yaml --- r: 3077 b: refs/heads/master c: c3015b8 h: refs/heads/master i: 3075: 6623f68 v: v3
1 parent 90a8e56 commit 9286ebc

File tree

3 files changed

+10
-23
lines changed

3 files changed

+10
-23
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: 1cc7165e62f17b24c2f14eb733f07ac7469c4420
2+
refs/heads/master: c3015b895254e059b163479849dfb1353929206f

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

trunk/src/comp/driver/rustc.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ fn main(vec[str] args) {
449449
let str stage = "-L" + binary_dir;
450450
let vec[str] gcc_args;
451451
let str prog = "gcc";
452-
let str exe_suffix = "";
453452

454453
// The invocations of gcc share some flags across platforms
455454
let vec[str] common_cflags = ["-fno-strict-aliasing", "-fPIC",
@@ -459,25 +458,24 @@ fn main(vec[str] args) {
459458

460459
alt (sess.get_targ_cfg().os) {
461460
case (session::os_win32) {
462-
exe_suffix = ".exe";
463461
gcc_args = common_cflags + [
464462
"-march=i686", "-O2",
465463
glu, main, "-o",
466-
saved_out_filename + exe_suffix,
464+
saved_out_filename,
467465
saved_out_filename + ".o"] + common_libs;
468466
}
469467
case (session::os_macos) {
470468
gcc_args = common_cflags + [
471469
"-arch i386", "-O0", "-m32",
472470
glu, main, "-o",
473-
saved_out_filename + exe_suffix,
471+
saved_out_filename,
474472
saved_out_filename + ".o"] + common_libs;
475473
}
476474
case (session::os_linux) {
477475
gcc_args = common_cflags + [
478476
"-march=i686", "-O2", "-m32",
479477
glu, main, "-o",
480-
saved_out_filename + exe_suffix,
478+
saved_out_filename,
481479
saved_out_filename + ".o"] + common_libs;
482480
}
483481
}

0 commit comments

Comments
 (0)