From 1c0c87232c2debeea66ce422e2f006c8e45c1776 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 8435b97d76049f..58d6ca50f282ba 100644 --- a/llvm.proj +++ b/llvm.proj @@ -70,6 +70,7 @@ <_LLVMBuildArgs Condition="'$(BuildOS)' == 'OSX'" Include='-DLLVM_EXTERNALIZE_DEBUGINFO_EXTENSION=dwarf -DLLVM_EXTERNALIZE_DEBUGINFO_FLATTEN:BOOL=ON' /> <_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' />