You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by tw...@apache.org on 2023/05/16 07:33:45 UTC
[incubator-kvrocks] branch unstable updated: Suppress error in TBB to make build failure for GCC 12 and above (#1440)
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 015ab4a0 Suppress error in TBB to make build failure for GCC 12 and above (#1440)
015ab4a0 is described below
commit 015ab4a0f6e906c8e9e76aa32a1fd6de0f6cb792
Author: Yaroslav <to...@gmail.com>
AuthorDate: Tue May 16 10:33:38 2023 +0300
Suppress error in TBB to make build failure for GCC 12 and above (#1440)
---
cmake/tbb.cmake | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cmake/tbb.cmake b/cmake/tbb.cmake
index e2247540..6d5018d5 100644
--- a/cmake/tbb.cmake
+++ b/cmake/tbb.cmake
@@ -30,3 +30,7 @@ FetchContent_MakeAvailableWithArgs(tbb
TBBMALLOC_BUILD=OFF
BUILD_SHARED_LIBS=OFF
)
+
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12)
+ target_compile_options(tbb PRIVATE "-Wno-error=stringop-overflow")
+endif()