We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b12e9a commit 923d0bbCopy full SHA for 923d0bb
build.rs
@@ -67,10 +67,13 @@ fn main() {
67
// MSVC basically never has it preinstalled, MinGW picks up a bunch of weird
68
// paths we don't like, `want_static` may force us, and cross compiling almost
69
// never has a prebuilt version.
70
+ //
71
+ // Apple platforms have libz.1.dylib, and it's usually available even when
72
+ // cross compiling (via fat binary or in the target's Xcode SDK)
73
if target.contains("msvc")
74
|| target.contains("pc-windows-gnu")
75
|| want_static
- || target != host
76
+ || (target != host && !target.contains("-apple-"))
77
{
78
return build_zlib(&mut cfg, &target);
79
}
0 commit comments