mirror of
https://github.com/MariaDB/server.git
synced 2026-04-19 06:45:32 +02:00
fix TSAN build with Clang
This commit is contained in:
parent
a1a4e8eec1
commit
3a418242df
2 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue