Skip to content

Commit

Permalink
Really try dylib when compiling for Apple platforms
Browse files Browse the repository at this point in the history
Really fixes #84
  • Loading branch information
glandium committed Jan 26, 2024
1 parent b7ffc6f commit ac242af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ fn main() {
// Apple platforms have libz.1.dylib, and it's usually available even when
// cross compiling (via fat binary or in the target's Xcode SDK)
let cross_compiling = target != host;
let apple_to_apple = host.contains("-apple-") && target.contains("-apple-");
if target.contains("msvc")
|| target.contains("pc-windows-gnu")
|| want_static
|| (cross_compiling && !apple_to_apple)
|| (cross_compiling && !target.contains("-apple-"))
{
return build_zlib(&mut cfg, &target);
}
Expand Down

0 comments on commit ac242af

Please sign in to comment.