When running with options that enable ubsan, define ROCKSDB_UBSAN_RUN which disables ubsan instrumentation for some functions within rocksdb that are false-positives. (#3579)

This commit is contained in:
clemahieu 2021-12-09 14:04:59 +00:00 committed by GitHub
commit f1cea6dcc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,6 +253,7 @@ else()
add_compile_options(-fsanitize=address,undefined)
endif()
add_definitions(-DED25519_NO_INLINE_ASM)
add_definitions(-DROCKSDB_UBSAN_RUN)
elseif(${USING_TSAN})
add_compile_options(-fsanitize=thread)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")