Skip to content

Commit af66666

Browse files
authored
Merge pull request #16 from lukis101/thread-sanitizer-fix
Fix thread sanitizer arguments
2 parents 71b4779 + f73872b commit af66666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/sanitizers.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL
2121
option(THREAD_SANITIZER "description" OFF)
2222
message(STATUS " + THREAD_SANITIZER ${THREAD_SANITIZER}")
2323
if(THREAD_SANITIZER)
24-
add_compile_options(-fsanitize=undefined)
25-
link_libraries(-fsanitize=undefined)
24+
add_compile_options(-fsanitize=thread)
25+
link_libraries(-fsanitize=thread)
2626
endif()
2727

2828
# Clang only

0 commit comments

Comments
 (0)