Skip to content

Commit a29934a

Browse files
committed
librustc: Fix bug preventing -framework Foo from working cross-crate.
1 parent 9c4d804 commit a29934a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/librustc/back/link.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -849,11 +849,7 @@ pub fn link_binary(sess: Session,
849849
do cstore::iter_crate_data(cstore) |crate_num, _| {
850850
let link_args = csearch::get_link_args_for_crate(cstore, crate_num);
851851
do vec::consume(link_args) |_, link_arg| {
852-
// Linker arguments that don't begin with - are likely file names,
853-
// so they should not be necessary.
854-
if link_arg.starts_with("-") {
855-
cc_args.push(link_arg);
856-
}
852+
cc_args.push(link_arg);
857853
}
858854
}
859855

0 commit comments

Comments
 (0)