Enable building with sanitizers. (#3525)

This commit is contained in:
trivialfis
2018-07-31 13:25:47 +08:00
committed by Rory Mitchell
parent b546321c83
commit 860263f814
6 changed files with 148 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
set(ASan_LIB_NAME ASan)
find_library(ASan_LIBRARY
NAMES libasan.so libasan.so.4
PATHS /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ASan DEFAULT_MSG
ASan_LIBRARY)
mark_as_advanced(
ASan_LIBRARY
ASan_LIB_NAME)