diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-20 13:48:10 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-20 17:18:38 +0200 |
| commit | ef63f09dcd65729f84a4f49432467ad5ace86906 (patch) | |
| tree | 867d013350635b1e1130baa0a57345d8016c2d31 /src/comp/back | |
| parent | cff9c676748b719d5333aa7521e4684f3543e4b9 (diff) | |
Don't rely on main.ll anymore
I'll remove the actual file after I register a snapshot. Issue #992
Diffstat (limited to 'src/comp/back')
| -rw-r--r-- | src/comp/back/link.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index 562c7f0d6f1..6988f0c1f21 100644 --- a/src/comp/back/link.rs +++ b/src/comp/back/link.rs @@ -503,12 +503,6 @@ fn mangle_internal_name_by_seq(ccx: @crate_ctxt, flav: str) -> str { // gcc to link the object file with some libs fn link_binary(sess: session::session, saved_out_filename: str) { - let main: str = alt filesearch::search( - sess.filesearch(), bind filesearch::pick_file("main.o", _)) { - option::some(f) { f } - option::none. { sess.fatal("can't find main.o") } - }; - // The default library location, we need this to find the runtime. // The location of crates will be determined as needed. let stage: str = "-L" + sess.filesearch().get_target_lib_path(); @@ -579,7 +573,7 @@ fn link_binary(sess: session::session, } } else { // FIXME: why do we hardcode -lm? - gcc_args += ["-lm", main]; + gcc_args += ["-lm"]; } |
