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 {
365
365
}
366
366
367
367
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 ( ' ' )
369
370
. filter ( |l| l. len ( ) > 2 )
370
371
. map ( |arg| ( & arg[ 0 ..2 ] , & arg[ 2 ..] ) )
371
372
. collect :: < Vec < _ > > ( ) ;
@@ -402,13 +403,13 @@ impl Library {
402
403
}
403
404
}
404
405
405
- let mut iter = output. split ( ' ' ) ;
406
+ let mut iter = output. trim_right ( ) . split ( ' ' ) ;
406
407
while let Some ( part) = iter. next ( ) {
407
408
if part != "-framework" {
408
409
continue
409
410
}
410
411
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) ;
412
413
config. print_metadata ( & meta) ;
413
414
self . frameworks . push ( lib. to_string ( ) ) ;
414
415
}
You can’t perform that action at this time.
0 commit comments