From: Vsevolod Stakhov Date: Thu, 2 Mar 2023 09:32:05 +0000 (+0000) Subject: [Minor] Fix xxhash build with the debug flags X-Git-Tag: 3.5~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a6ffbcec61a1bebf097fcb895440889fda76a53;p=thirdparty%2Frspamd.git [Minor] Fix xxhash build with the debug flags Related: https://github.com/Cyan4973/xxHash/pull/720 --- diff --git a/contrib/xxhash/CMakeLists.txt b/contrib/xxhash/CMakeLists.txt index 8caf319e4f..e15eeaf531 100644 --- a/contrib/xxhash/CMakeLists.txt +++ b/contrib/xxhash/CMakeLists.txt @@ -6,4 +6,8 @@ IF(ENABLE_FULL_DEBUG MATCHES "OFF") if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") SET_TARGET_PROPERTIES(xxhash PROPERTIES COMPILE_FLAGS "-O3") endif () +else() +ADD_DEFINITIONS(-DXXH_NO_INLINE_HINTS=1) ENDIF() + +set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DXXH_NO_INLINE_HINTS=1")