Define ASan_SHARED_LIB that may be used without ASan_WRAPPER
This commit is contained in:
parent
07be757faf
commit
9b4aec096e
@ -49,7 +49,11 @@ endif()
|
||||
|
||||
if (SANITIZE_ADDRESS)
|
||||
find_program(ASan_WRAPPER "asan-wrapper" PATHS ${CMAKE_MODULE_PATH})
|
||||
mark_as_advanced(ASan_WRAPPER)
|
||||
mark_as_advanced(ASan_WRAPPER)
|
||||
if (CMAKE_SYSTEM_NAME EQUAL "Linux")
|
||||
find_library(ASan_SHARED_LIB "clang_rt.asan-x86_64" PATH_SUFFIXES "linux")
|
||||
mark_as_advanced(ASan_SHARED_LIB)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
function (add_sanitize_address TARGET)
|
||||
|
Loading…
Reference in New Issue
Block a user