Skip to content

Commit

Permalink
fix TSAN build with Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs authored and svoj committed Oct 6, 2017
1 parent a1a4e8e commit 3a41824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/os/Linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ ENDFOREACH()

# Ensure we have clean build for shared libraries
# without unresolved symbols
# Not supported with AddressSanitizer
IF(NOT WITH_ASAN)
# Not supported with AddressSanitizer and ThreadSanitizer
IF(NOT WITH_ASAN AND NOT WITH_TSAN)
SET(LINK_FLAG_NO_UNDEFINED "-Wl,--no-undefined")
ENDIF()

Expand Down
2 changes: 1 addition & 1 deletion cmake/plugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ MACRO(MYSQL_ADD_PLUGIN)
ELSEIF(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
TARGET_LINK_LIBRARIES (${target} mysqld)
ENDIF()
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT WITH_ASAN)
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT WITH_ASAN AND NOT WITH_TSAN)
TARGET_LINK_LIBRARIES (${target} "-Wl,--no-undefined")
ENDIF()

Expand Down

0 comments on commit 3a41824

Please sign in to comment.