From 0a6a85ea61d7e310b902f73196a8bc4488a95ccd Mon Sep 17 00:00:00 2001 From: Vlj Date: Tue, 12 Aug 2014 00:32:24 +0200 Subject: [PATCH] Use AddressSanitizer in debug build --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 82ea054d1..9f3bc575e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()