Skip to content

Commit 1809e15

Browse files
committed
---
yaml --- r: 3045 b: refs/heads/master c: 182b933 h: refs/heads/master i: 3043: d16c815 v: v3
1 parent 3c95210 commit 1809e15

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
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: 00eb3f5798ae77c8af135b86c827a67a8febd932
2+
refs/heads/master: 182b933ac4948b2cc361f31dbb80d8c5f86dfa5c

trunk/src/comp/driver/rustc.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ fn main(vec[str] args) {
434434

435435
//FIXME: Should we make the 'stage3's variable here?
436436
let str glu = "stage3/glue.o";
437+
let str main = "rt/main.o";
437438
let str stage = "-Lstage3";
438439
let vec[str] gcc_args;
439440
let str prog = "gcc";
@@ -450,21 +451,21 @@ fn main(vec[str] args) {
450451
exe_suffix = ".exe";
451452
gcc_args = common_cflags + [
452453
"-march=i686", "-O2",
453-
glu, "-o",
454+
glu, main, "-o",
454455
saved_out_filename + exe_suffix,
455456
saved_out_filename + ".o"] + common_libs;
456457
}
457458
case (session::os_macos) {
458459
gcc_args = common_cflags + [
459460
"-arch i386", "-O0", "-m32",
460-
glu, "-o",
461+
glu, main, "-o",
461462
saved_out_filename + exe_suffix,
462463
saved_out_filename + ".o"] + common_libs;
463464
}
464465
case (session::os_linux) {
465466
gcc_args = common_cflags + [
466467
"-march=i686", "-O2", "-m32",
467-
glu, "-o",
468+
glu, main, "-o",
468469
saved_out_filename + exe_suffix,
469470
saved_out_filename + ".o"] + common_libs;
470471
}

0 commit comments

Comments
 (0)