Skip to content

Commit

Permalink
SANITIZE IGNORES
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Dec 27, 2023
1 parent fc24769 commit d015292
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ if(${NANO_ASAN})
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)

# add_compile_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_asan")
# add_link_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_asan")
add_compile_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_asan")
add_link_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_asan")

add_definitions(-DED25519_NO_INLINE_ASM)
endif ()
Expand All @@ -234,8 +234,8 @@ if(${NANO_ASAN_INT})
add_compile_options(-fsanitize=address,integer)
add_link_options(-fsanitize=address,integer)

# add_compile_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_asan")
# add_link_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_asan")
add_compile_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_asan")
add_link_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_asan")

add_definitions(-DED25519_NO_INLINE_ASM)
endif ()
Expand All @@ -246,6 +246,9 @@ if(${NANO_UBSAN})
add_compile_options(-fsanitize=undefined)
add_link_options(-fsanitize=undefined)

add_compile_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_ubsan")
add_link_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_ubsan")

add_definitions(-DED25519_NO_INLINE_ASM)
add_definitions(-DROCKSDB_UBSAN_RUN)
endif ()
Expand All @@ -256,6 +259,9 @@ if(${NANO_TSAN})
add_compile_options(-fsanitize=thread)
add_link_options(-fsanitize=thread)

add_compile_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_tsan")
add_link_options("-fsanitize-ignorelist=${PROJECT_SOURCE_DIR}/sanitize_ignorelist_tsan")

add_definitions(-DED25519_NO_INLINE_ASM)
endif ()

Expand Down

0 comments on commit d015292

Please sign in to comment.