From 8a6ffbcec61a1bebf097fcb895440889fda76a53 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 2 Mar 2023 09:32:05 +0000 Subject: [PATCH] [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") -- 2.39.5