From: Casey Bodley Date: Wed, 26 Jun 2024 22:17:13 +0000 (-0400) Subject: cmake: work around xxhash 'inlining failed' errors in debug builds X-Git-Tag: v20.0.0~1591^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F58429%2Fhead;p=ceph.git cmake: work around xxhash 'inlining failed' errors in debug builds rgw enables the XXH_INLINE_ALL define, but this causes debug builds to fail with errors like "inlining failed in call to ‘always_inline’" for build types Debug and RelWithDebInfo, add extra define XXH_NO_INLINE_HINTS to remove the always_inline hints causing this error Signed-off-by: Casey Bodley --- diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt index bcbde72d8aab..25151fb24fb0 100644 --- a/src/rgw/CMakeLists.txt +++ b/src/rgw/CMakeLists.txt @@ -312,6 +312,11 @@ target_include_directories(rgw_common PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw" PUBLIC "${LUA_INCLUDE_DIR}") +# work around https://github.com/Cyan4973/xxHash/issues/943 for debug builds +target_compile_definitions(rgw_common PUBLIC + $<$:XXH_NO_INLINE_HINTS=1> + $<$:XXH_NO_INLINE_HINTS=1>) + if(WITH_RADOSGW_KAFKA_ENDPOINT) # used by rgw_kafka.cc target_link_libraries(rgw_common