Define ASan_SHARED_LIB that may be used without ASan_WRAPPER

This commit is contained in:
Andrei Astafev 2019-07-02 09:51:45 +03:00
parent 07be757faf
commit 9b4aec096e

View File

@ -50,6 +50,10 @@ endif()
if (SANITIZE_ADDRESS)
find_program(ASan_WRAPPER "asan-wrapper" PATHS ${CMAKE_MODULE_PATH})
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)