Skip to content

Commit 1c0c872

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 0b3ae86 commit 1c0c872

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
@@ -70,6 +70,7 @@
7070
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'OSX'" Include='-DLLVM_EXTERNALIZE_DEBUGINFO_EXTENSION=dwarf -DLLVM_EXTERNALIZE_DEBUGINFO_FLATTEN:BOOL=ON' />
7171
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_USE_CRT_DEBUG=MT' />
7272
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_USE_CRT_RELEASE=MT' />
73+
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_ENABLE_ZLIB=OFF' />
7374
</ItemGroup>
7475

7576
<ItemGroup>

0 commit comments

Comments
 (0)