Skip to content

Commit 90e2d3c

Browse files
committed
build: add thread as supported sanitizer
Signed-off-by: Kefu Chai <[email protected]>
1 parent 1af93db commit 90e2d3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/FindSanitizers.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ foreach (component ${Sanitizers_FIND_COMPONENTS})
3636
list (APPEND ${compile_options} -fsanitize=address)
3737
elseif (component STREQUAL "undefined_behavior")
3838
list (APPEND ${compile_options} -fsanitize=undefined)
39+
elseif (component STREQUAL "thread")
40+
list (APPEND ${compile_options} -fsanitize=thread)
3941
else ()
4042
message (FATAL_ERROR "Unsupported sanitizer: ${component}")
4143
endif ()

0 commit comments

Comments
 (0)