mirror of
https://github.com/ceph/ceph
synced 2025-01-08 20:21:33 +00:00
cmake: fix libtsan detection
This variable is case-sensitive. Signed-off-by: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
parent
9b6ed03e60
commit
09bd258a9f
@ -20,7 +20,7 @@ foreach(component ${Sanitizers_FIND_COMPONENTS})
|
||||
elseif(NOT CMAKE_POSITION_INDEPENDENT_CODE)
|
||||
message(SEND_ERROR "TSan requires all code to be position independent")
|
||||
endif()
|
||||
set(Sanitizers_Thread_COMPILE_OPTIONS "-fsanitize=thread")
|
||||
set(Sanitizers_thread_COMPILE_OPTIONS "-fsanitize=thread")
|
||||
elseif(component STREQUAL "undefined_behavior")
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88684
|
||||
set(Sanitizers_undefined_behavior_COMPILE_OPTIONS "-fsanitize=undefined;-fno-sanitize=vptr")
|
||||
|
Loading…
Reference in New Issue
Block a user