Skip to content

Commit 59189a0

Browse files
authored
Merge pull request #92 from lespea/patch-1
Fix zlib-ng win32 builds
2 parents d66a637 + fbe3063 commit 59189a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ fn build_zlib_ng(target: &str) {
177177
if target.contains("apple") {
178178
cmake.cflag("-D_DARWIN_C_SOURCE=1");
179179
}
180+
if target == "i686-pc-windows-msvc" {
181+
cmake.define("CMAKE_GENERATOR_PLATFORM", "Win32");
182+
}
180183

181184
let install_dir = cmake.build();
182185

0 commit comments

Comments
 (0)