Skip to content

Commit 53bf79e

Browse files
committed
Do not try to build LLVM with Zlib on Windows
We do not install Zlib on the CI but recent builds somehow started picking it's shared version. To avoid relying on CI binaries so let's explicitly disable it.
1 parent d854c3c commit 53bf79e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl Step for Llvm {
181181
.define("LLVM_TARGET_ARCH", target_native.split('-').next().unwrap())
182182
.define("LLVM_DEFAULT_TARGET_TRIPLE", target_native);
183183

184-
if target != "aarch64-apple-darwin" {
184+
if target != "aarch64-apple-darwin" && !target.contains("windows") {
185185
cfg.define("LLVM_ENABLE_ZLIB", "ON");
186186
} else {
187187
cfg.define("LLVM_ENABLE_ZLIB", "OFF");

0 commit comments

Comments
 (0)