File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ impl CStore {
196
196
}
197
197
198
198
pub fn add_used_link_args ( & self , args : & str ) {
199
- for s in args. split ( ' ' ) {
199
+ for s in args. split ( ' ' ) . filter ( |s| !s . is_empty ( ) ) {
200
200
self . used_link_args . borrow_mut ( ) . push ( s. to_string ( ) ) ;
201
201
}
202
202
}
Original file line number Diff line number Diff line change
1
+ // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ // ignore-win32
12
+
13
+ #![ feature( link_args) ]
14
+
15
+ #[ link_args="-lc -lm" ]
16
+ #[ link_args=" -lc" ]
17
+ #[ link_args="-lc " ]
18
+ extern { }
19
+
20
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments