Skip to content

Commit 2762747

Browse files
committed
ENH: Disable unnecessary compression support in LLVM build configuration
CMake building of llvm autodetects zstd and zlib from homebrew and automatically links against them. A compiler warning is given: ``` ld: warning: building for macOS-11.0, but linking with dylib '/opt/homebrew/opt/zstd/lib/libzstd.1.dylib' which was built for newer version 15.0 ``` Additionally, this prevents castxml from running on many systems due to the dependence on homebrew being installed with the same or newer version as was present during compilation.
1 parent a572998 commit 2762747

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ else()
9595
-DLLVM_INCLUDE_DOCS:BOOL=OFF
9696
-DLLVM_ENABLE_OCAMLDOC:BOOL=OFF
9797
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN:BOOL=ON
98+
# Disable unneeded compression support in llvm
99+
-DLLVM_USE_STATIC_ZSTD:BOOL=OFF
100+
-DLLVM_ENABLE_ZLIB:BOOL=OFF
101+
-DLLVM_ENABLE_ZSTD:BOOL=OFF
98102
${osx_args}
99103
${verbose_command}
100104
${download_extract_timestamp_flag}

0 commit comments

Comments
 (0)