From e8ba5f2251a5cfba954c29b41bdf69a1deb84dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Tue, 13 Dec 2022 21:32:13 +0100 Subject: [PATCH] Do not try to build LLVM with Zlib on Windows (#332) CMake is accidentally picking up zlib from the CI environment, see https://github.com/actions/runner-images/issues/6627#issuecomment-1328214957, the build log now has this line: ``` -- Found ZLIB: C:/Strawberry/c/lib/libz.a (found version "1.2.11") ``` Disable zlib on Windows since we don't want the dependency there, this is also what Rust did a while back: https://github.com/rust-lang/rust/pull/85762 (cherry picked from commit ea445e4b536e801e88ffddaa2ea485d07ee72a2b) --- llvm.proj | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm.proj b/llvm.proj index be3ea4e06d181..8788319a7efb5 100644 --- a/llvm.proj +++ b/llvm.proj @@ -59,6 +59,7 @@ <_LLVMBuildArgs Include='-DLLVM_ENABLE_TERMINFO:BOOL=OFF' /> <_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_USE_CRT_DEBUG=MT' /> <_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_USE_CRT_RELEASE=MT' /> + <_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_ENABLE_ZLIB=OFF' />