This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 9b721b1 Statically link libgcc and libstdc++ while using Clang (#758)
9b721b1 is described below
commit 9b721b1d9e2bb93aabd54c04ada2a50a2574d858
Author: Twice <[email protected]>
AuthorDate: Thu Jul 28 12:35:05 2022 +0800
Statically link libgcc and libstdc++ while using Clang (#758)
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9b7a65b..22d71c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -92,7 +92,7 @@ execute_process(COMMAND git rev-parse --short HEAD
string(STRIP "${GIT_SHA}" GIT_SHA)
configure_file(src/version.h.in ${PROJECT_BINARY_DIR}/version.h)
-if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"))
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc")
if(ENABLE_STATIC_LIBSTDCXX)