cmake: only run TSan on non-SAN,TIDY Debug builds
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
57fae8f582
commit
65882cad15
|
@ -127,6 +127,12 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=safe-stack")
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
if(NOT TIDY)
|
||||
# might be of note
|
||||
# https://www.chromium.org/developers/testing/threadsanitizer-tsan-v2
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread")
|
||||
endif()
|
||||
endif(SAN)
|
||||
|
||||
|
||||
|
@ -193,9 +199,6 @@ if(CMAKE_BUILD_TYPE MATCHES "Release")
|
|||
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Wp,-D_FORTIFY_SOURCE=2")
|
||||
endif(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
|
||||
if(NOT SAN)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread")
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsplit-stack")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat=2 -Wformat-security")
|
||||
|
||||
|
|
Reference in New Issue