Skip to content

Commit caedafd

Browse files
committed
build: add thread sanitizer
We have a cmake option to build Tntcxx with sanitizers. Currently, only memory and UB sanitizers are used - let's populate the list with thread sanitizer since we have a test for a multithreaded scenario.
1 parent 67069ea commit caedafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ OPTION(TNTCXX_ENABLE_SANITIZERS
9595
OFF)
9696

9797
IF (TNTCXX_ENABLE_SANITIZERS)
98-
SET(SANITIZER_FLAGS "-fsanitize=address")
98+
SET(SANITIZER_FLAGS "-fsanitize=address -fsanitize=thread")
9999
# FIXME(gh-62)
100100
IF (NOT CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
101101
# The leak sanitizer is not available in AppleClang, see

0 commit comments

Comments
 (0)