From 9134ceb87d2135b9d2fbc49f967f528620e19773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Tue, 13 Dec 2022 18:53:08 +0100 Subject: [PATCH] Do not try to build LLVM with Zlib on Windows CMake is accidentally picking up zlib from the CI environment, see https://github.com/actions/runner-images/issues/6627#issuecomment-1328214957. 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 --- llvm.proj | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm.proj b/llvm.proj index 220a4b69d5edd..667fe8291179a 100644 --- a/llvm.proj +++ b/llvm.proj @@ -78,6 +78,7 @@ <_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT' and '$(Configuration)' == 'Release'" Include='-DLLVM_USE_CRT_RELEASE=MT' /> <_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT' and '$(Configuration)' == 'Debug'" Include='-DLLVM_USE_CRT_DEBUG=MTd' /> <_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT' and '$(Configuration)' == 'Debug'" Include='-DLLVM_USE_CRT_RELEASE=MTd' /> + <_LLVMBuildArgs Condition="'$(BuildOS)' == 'Windows_NT'" Include='-DLLVM_ENABLE_ZLIB=OFF' />