librustc: Fix bug preventing -framework Foo from working cross-crate.

This commit is contained in:
Patrick Walton 2013-03-20 13:50:34 -07:00
parent 9c4d804cfe
commit a29934a61b

View file

@ -849,11 +849,7 @@ fn unlib(config: @session::config, +stem: ~str) -> ~str {
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);
}
}