We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71b4779 + f73872b commit af66666Copy full SHA for af66666
cmake/sanitizers.cmake
@@ -21,8 +21,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL
21
option(THREAD_SANITIZER "description" OFF)
22
message(STATUS " + THREAD_SANITIZER ${THREAD_SANITIZER}")
23
if(THREAD_SANITIZER)
24
- add_compile_options(-fsanitize=undefined)
25
- link_libraries(-fsanitize=undefined)
+ add_compile_options(-fsanitize=thread)
+ link_libraries(-fsanitize=thread)
26
endif()
27
28
# Clang only
0 commit comments