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