From 1ede61c6963ea4909412d9d2f69cba189765e3e1 Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Sun, 17 Mar 2024 14:53:15 +0100 Subject: [PATCH] Disable even more optional LLVM components (#179) --- ext/llvm-sys.rs/build.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ext/llvm-sys.rs/build.rs b/ext/llvm-sys.rs/build.rs index c83930f..9b43c8b 100644 --- a/ext/llvm-sys.rs/build.rs +++ b/ext/llvm-sys.rs/build.rs @@ -48,8 +48,14 @@ fn build_cmake_targets<'a>( cmake .always_configure(true) // Should be detected automatically, but we have reports of - // LLVM fiding ZLIB on Windows and then failing to link it + // LLVM fiding ZLIB on Windows and then failing to link it. + // Out of caution we explicitly disable all autodetectable components + .define("LLVM_ENABLE_LIBXML2", "OFF") .define("LLVM_ENABLE_ZLIB", "OFF") + .define("LLVM_ENABLE_ZSTD", "OFF") + .define("LLVM_ENABLE_CURL", "OFF") + .define("LLVM_ENABLE_HTTPLIB", "OFF") + .define("LLVM_ENABLE_LIBEDIT", "OFF") .define("LLVM_ENABLE_TERMINFO", "OFF") .define("LLVM_BUILD_TOOLS", "OFF") .define("LLVM_TARGETS_TO_BUILD", "")