commit 8a6ffbc: [Minor] Fix xxhash build with the debug flags

Vsevolod Stakhov vsevolod at rspamd.com
Thu Mar 2 09:35:03 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-03-02 09:32:05 +0000
URL: https://github.com/rspamd/rspamd/commit/8a6ffbcec61a1bebf097fcb895440889fda76a53

[Minor] Fix xxhash build with the debug flags
Related: https://github.com/Cyan4973/xxHash/pull/720

---
 contrib/xxhash/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

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")


More information about the Commits mailing list