Skip to content

Commit

Permalink
TSAN suppressions file (nanocurrency#1941)
Browse files Browse the repository at this point in the history
* Add tsan suppressions file

* Change tsan_blacklist to tsan_clang_blacklist
  • Loading branch information
wezrule authored Apr 30, 2019
1 parent 797dfe8 commit fbdf6f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ else ()
elseif (${USING_TSAN})
add_compile_options(-fsanitize=thread)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options("-fsanitize-blacklist=${PROJECT_SOURCE_DIR}/tsan_blacklist")
add_compile_options("-fsanitize-blacklist=${PROJECT_SOURCE_DIR}/tsan_clang_blacklist")
endif()
add_definitions(-DED25519_NO_INLINE_ASM)
endif()
Expand Down Expand Up @@ -127,7 +127,7 @@ else ()
elseif (${USING_TSAN})
set (PLATFORM_LINK_FLAGS "${PLATFORM_LINK_FLAGS} -fsanitize=thread")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set (PLATFORM_LINK_FLAGS "${PLATFORM_LINK_FLAGS} -fsanitize-blacklist=${PROJECT_SOURCE_DIR}/tsan_blacklist")
set (PLATFORM_LINK_FLAGS "${PLATFORM_LINK_FLAGS} -fsanitize-blacklist=${PROJECT_SOURCE_DIR}/tsan_clang_blacklist")
endif()
endif()
endif ()
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions tsan_suppressions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
race:mdb.c

0 comments on commit fbdf6f5

Please sign in to comment.