Better way to enable sanitizers in CMake [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-08-08 06:40:10 +03:00 committed by alexey-milovidov
parent 0e557b47fa
commit 22fc1fcd54

View File

@ -75,6 +75,8 @@ elseif (USE_TCMALLOC)
message (STATUS "Link libtcmalloc_minimal: ${GPERFTOOLS_TCMALLOC_MINIMAL}")
set (MALLOC_LIBRARIES ${GPERFTOOLS_TCMALLOC_MINIMAL})
endif ()
elseif (SANITIZE)
message (STATUS "Will use ${SANITIZE} sanitizer.")
else ()
message (WARNING "Non default allocator is disabled. This is not recommended for production Linux builds.")
endif ()