Skip to content

Commit ea445e4

Browse files
authored
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
1 parent f297c5a commit ea445e4

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
@@ -78,6 +78,7 @@
7878
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT' and '$(Configuration)' == 'Release'" Include='-DLLVM_USE_CRT_RELEASE=MT' />
7979
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT' and '$(Configuration)' == 'Debug'" Include='-DLLVM_USE_CRT_DEBUG=MTd' />
8080
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT' and '$(Configuration)' == 'Debug'" Include='-DLLVM_USE_CRT_RELEASE=MTd' />
81+
<_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_ENABLE_ZLIB=OFF' />
8182
</ItemGroup>
8283

8384
<ItemGroup>

0 commit comments

Comments
 (0)