File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -238,18 +238,20 @@ fn main() {
238
238
239
239
if !is_crossed {
240
240
cmd. arg ( "--system-libs" ) ;
241
- } else if target. contains ( "windows-gnu" ) {
242
- println ! ( "cargo:rustc-link-lib=shell32" ) ;
243
- println ! ( "cargo:rustc-link-lib=uuid" ) ;
244
- } else if target. contains ( "netbsd" ) || target. contains ( "haiku" ) || target. contains ( "darwin" ) {
245
- println ! ( "cargo:rustc-link-lib=z" ) ;
246
- } else if target. starts_with ( "arm" )
241
+ }
242
+
243
+ if ( target. starts_with ( "arm" ) && !target. contains ( "freebsd" ) )
247
244
|| target. starts_with ( "mips-" )
248
245
|| target. starts_with ( "mipsel-" )
249
246
|| target. starts_with ( "powerpc-" )
250
247
{
251
248
// 32-bit targets need to link libatomic.
252
249
println ! ( "cargo:rustc-link-lib=atomic" ) ;
250
+ } else if target. contains ( "windows-gnu" ) {
251
+ println ! ( "cargo:rustc-link-lib=shell32" ) ;
252
+ println ! ( "cargo:rustc-link-lib=uuid" ) ;
253
+ } else if target. contains ( "netbsd" ) || target. contains ( "haiku" ) || target. contains ( "darwin" ) {
254
+ println ! ( "cargo:rustc-link-lib=z" ) ;
253
255
}
254
256
cmd. args ( & components) ;
255
257
You can’t perform that action at this time.
0 commit comments