File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -235,10 +235,8 @@ fn main() {
235
235
// of llvm-config, not the target that we're attempting to link.
236
236
let mut cmd = Command :: new ( & llvm_config) ;
237
237
cmd. arg ( llvm_link_arg) . arg ( "--libs" ) ;
238
-
239
- if !is_crossed {
240
- cmd. arg ( "--system-libs" ) ;
241
- }
238
+ cmd. arg ( "--system-libs" ) ;
239
+ cmd. args ( & components) ;
242
240
243
241
if ( target. starts_with ( "arm" ) && !target. contains ( "freebsd" ) )
244
242
|| target. starts_with ( "mips-" )
@@ -253,7 +251,6 @@ fn main() {
253
251
} else if target. contains ( "netbsd" ) || target. contains ( "haiku" ) || target. contains ( "darwin" ) {
254
252
println ! ( "cargo:rustc-link-lib=z" ) ;
255
253
}
256
- cmd. args ( & components) ;
257
254
258
255
for lib in output ( & mut cmd) . split_whitespace ( ) {
259
256
let name = if let Some ( stripped) = lib. strip_prefix ( "-l" ) {
You can’t perform that action at this time.
0 commit comments