Use AddressSanitizer in debug build

This commit is contained in:
Vlj 2014-08-12 00:32:24 +02:00
parent 8fa0cdb543
commit 0a6a85ea61

View File

@ -161,6 +161,7 @@ else()
# compile flags can be simplye be added
if(CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(-DDEBUG)
add_definitions("-fsanitize=address")
else()
add_definitions(-DNDEBUG)
endif()