Disable static linking for tsan

This commit is contained in:
Andrew Noyes 2020-05-13 20:53:39 +00:00
parent 4cf75e33c7
commit cdc16a8610

View File

@ -32,7 +32,10 @@ function(use_libcxx out)
endfunction()
function(static_link_libcxx out)
if(APPLE)
if(USE_TSAN)
# Libc/libstdc++ static linking is not supported for tsan
set("${out}" OFF PARENT_SCOPE)
elseif(APPLE)
set("${out}" OFF PARENT_SCOPE)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
default_linker(linker)