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