workflows/release-binaries: Use static ZSTD on macOS
authorKeith Smiley <keithbsmiley@gmail.com>
Tue, 1 Oct 2024 17:02:20 +0000 (10:02 -0700)
committerTobias Hieta <tobias@hieta.se>
Fri, 11 Oct 2024 05:59:58 +0000 (07:59 +0200)
On macOS the shared zstd library points to a homebrew install that isn't
very stable for users.

(cherry picked from commit 748f5404ccdf28d4beef37efdaeba7a1701ab425)

clang/cmake/caches/Release.cmake

index 6d5f75ca0074eedc5a4ec2fc54e43ce489170db9..c4947bf453872b309489ed5c7f23b773e6e4e9d8 100644 (file)
@@ -101,3 +101,6 @@ set_final_stage_var(LLVM_ENABLE_PROJECTS "${LLVM_RELEASE_ENABLE_PROJECTS}" STRIN
 set_final_stage_var(CPACK_GENERATOR "TXZ" STRING)
 set_final_stage_var(CPACK_ARCHIVE_THREADS "0" STRING)
 
+if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin")
+  set_final_stage_var(LLVM_USE_STATIC_ZSTD "ON" BOOL)
+endif()