From a29934a61b0ade13ef799a9aa9e95c0be940e0f5 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 20 Mar 2013 13:50:34 -0700 Subject: [PATCH] librustc: Fix bug preventing `-framework Foo` from working cross-crate. --- src/librustc/back/link.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs index 9965a4a6fcdd6..39f621c676da6 100644 --- a/src/librustc/back/link.rs +++ b/src/librustc/back/link.rs @@ -849,11 +849,7 @@ pub fn link_binary(sess: Session, do cstore::iter_crate_data(cstore) |crate_num, _| { let link_args = csearch::get_link_args_for_crate(cstore, crate_num); do vec::consume(link_args) |_, link_arg| { - // Linker arguments that don't begin with - are likely file names, - // so they should not be necessary. - if link_arg.starts_with("-") { - cc_args.push(link_arg); - } + cc_args.push(link_arg); } }