[clang] [CMake][Release] Statically link libz (PR #128788)
Tom Stellard via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 15:43:40 PST 2025
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/128788
This will make the binaries more portable.
>From c778a3369e3435b6b08b3ef41c6f628ead50f876 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 25 Feb 2025 23:41:11 +0000
Subject: [PATCH] [CMake][Release] Statically link libz
This will make the binaries more portable.
---
clang/cmake/caches/Release.cmake | 1 +
1 file changed, 1 insertion(+)
diff --git a/clang/cmake/caches/Release.cmake b/clang/cmake/caches/Release.cmake
index aedbd1a25fb38..0725960367a97 100644
--- a/clang/cmake/caches/Release.cmake
+++ b/clang/cmake/caches/Release.cmake
@@ -146,3 +146,4 @@ 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()
+set_final_stage_var(ZLIB_USE_STATIC_LIBS "ON" BOOL)
More information about the cfe-commits
mailing list