aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-03-02 09:32:05 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-03-02 09:32:35 +0000
commit8a6ffbcec61a1bebf097fcb895440889fda76a53 (patch)
tree6f71b3e3a77cab33f3e85a903437c88075a55bb5 /contrib
parentb41f981863ecb2645d511111efc06e7a885aa750 (diff)
downloadrspamd-8a6ffbcec61a1bebf097fcb895440889fda76a53.tar.gz
rspamd-8a6ffbcec61a1bebf097fcb895440889fda76a53.zip
[Minor] Fix xxhash build with the debug flags
Related: https://github.com/Cyan4973/xxHash/pull/720
Diffstat (limited to 'contrib')
-rw-r--r--contrib/xxhash/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/xxhash/CMakeLists.txt b/contrib/xxhash/CMakeLists.txt
index 8caf319e4..e15eeaf53 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")