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 <cbodley@redhat.com>
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
+ $<$<CONFIG:Debug>:XXH_NO_INLINE_HINTS=1>
+ $<$<CONFIG:RelWithDebInfo>:XXH_NO_INLINE_HINTS=1>)
+
if(WITH_RADOSGW_KAFKA_ENDPOINT)
# used by rgw_kafka.cc
target_link_libraries(rgw_common