Skip to content

Commit e8ba5f2

Browse files
committed
Do not try to build LLVM with Zlib on Windows (#332)
CMake is accidentally picking up zlib from the CI environment, see actions/runner-images#6627 (comment), 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: rust-lang/rust#85762 (cherry picked from commit ea445e4)
1 parent 09c6ec8 commit e8ba5f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm.proj

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
<_LLVMBuildArgs Include='-DLLVM_ENABLE_TERMINFO:BOOL=OFF' />
6060
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_USE_CRT_DEBUG=MT' />
6161
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_USE_CRT_RELEASE=MT' />
62+
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_ENABLE_ZLIB=OFF' />
6263
</ItemGroup>
6364

6465
<ItemGroup>

0 commit comments

Comments
 (0)