Skip to content

Commit

Permalink
Disable even more optional LLVM components (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
vosen authored Mar 17, 2024
1 parent f47a93a commit 1ede61c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ext/llvm-sys.rs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down

0 comments on commit 1ede61c

Please sign in to comment.