File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,8 @@ impl Library {
365365 }
366366
367367 fn parse_libs_cflags ( & mut self , name : & str , output : & str , config : & Config ) {
368- let parts = output. split ( ' ' )
368+ let parts = output. trim_right ( )
369+ . split ( ' ' )
369370 . filter ( |l| l. len ( ) > 2 )
370371 . map ( |arg| ( & arg[ 0 ..2 ] , & arg[ 2 ..] ) )
371372 . collect :: < Vec < _ > > ( ) ;
@@ -402,13 +403,13 @@ impl Library {
402403 }
403404 }
404405
405- let mut iter = output. split ( ' ' ) ;
406+ let mut iter = output. trim_right ( ) . split ( ' ' ) ;
406407 while let Some ( part) = iter. next ( ) {
407408 if part != "-framework" {
408409 continue
409410 }
410411 if let Some ( lib) = iter. next ( ) {
411- let meta = format ! ( "cargo: rustc-link-lib=framework={}" , lib) ;
412+ let meta = format ! ( "rustc-link-lib=framework={}" , lib) ;
412413 config. print_metadata ( & meta) ;
413414 self . frameworks . push ( lib. to_string ( ) ) ;
414415 }
You can’t perform that action at this time.
0 commit comments