Skip to content

Commit 5443bd7

Browse files
committed
---
yaml --- r: 3481 b: refs/heads/master c: 5b7ce80 h: refs/heads/master i: 3479: a1c12b1 v: v3
1 parent f3710df commit 5443bd7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
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: b3e5b5bd05fabf9b68ef350632254aa696d74b89
2+
refs/heads/master: 5b7ce80ffa7c4f5795dfc9ed64fab8b2afd407b0

trunk/src/comp/driver/rustc.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,26 +396,23 @@ fn main(vec[str] args) {
396396
let str glu = binary_dir + "/lib/glue.o";
397397
let str main = "rt/main.o";
398398
let str stage = "-L" + binary_dir + "/lib";
399-
let vec[str] gcc_args;
400399
let str prog = "gcc";
401400
// The invocations of gcc share some flags across platforms
402401

403-
let vec[str] common_args =
402+
let vec[str] gcc_args =
404403
[stage, "-Lrt", "-lrustrt", glu, "-m32", "-o",
405404
saved_out_filename, saved_out_filename + ".o"];
406405
auto shared_cmd;
406+
407407
alt (sess.get_targ_cfg().os) {
408408
case (session::os_win32) {
409409
shared_cmd = "-shared";
410-
gcc_args = common_args + ["-lssp"];
411410
}
412411
case (session::os_macos) {
413412
shared_cmd = "-dynamiclib";
414-
gcc_args = common_args;
415413
}
416414
case (session::os_linux) {
417415
shared_cmd = "-shared";
418-
gcc_args = common_args;
419416
}
420417
}
421418

0 commit comments

Comments
 (0)