]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix xxhash build with the debug flags
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 2 Mar 2023 09:32:05 +0000 (09:32 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 2 Mar 2023 09:32:35 +0000 (09:32 +0000)
Related: https://github.com/Cyan4973/xxHash/pull/720

contrib/xxhash/CMakeLists.txt

index 8caf319e4f604c6cd9327f0f4565184bc87d5fc7..e15eeaf531c7c2580658b514b5f921dd89c373b6 100644 (file)
@@ -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")