Browse Source

[Minor] Fix xxhash build with the debug flags

Related: https://github.com/Cyan4973/xxHash/pull/720
tags/3.5
Vsevolod Stakhov 1 year ago
parent
commit
8a6ffbcec6
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      contrib/xxhash/CMakeLists.txt

+ 4
- 0
contrib/xxhash/CMakeLists.txt View 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")

Loading…
Cancel
Save