Skip to content

Commit

Permalink
librustc: Fix bug preventing -framework Foo from working cross-crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton committed Mar 20, 2013
1 parent 9c4d804 commit a29934a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/librustc/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

1 comment on commit a29934a

@catamorphism
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.