From 6047df25fef41fe621a8a9ef5915874516bdec7a Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 23 Feb 2015 09:11:57 +0100 Subject: Add ASAN and UBSAN options by default --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ed83915..b52470d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ INCLUDE(FindPkgConfig) # # Basic common compiler flags. # -SET(COMMON_COMPILER_FLAGS "-pipe -Wall -Wno-unused-value") +SET(COMMON_COMPILER_FLAGS "-pipe -Wall -Wno-unused-value -fsanitize=undefined -fsanitize=address") # # GCC/G++ flags -- cgit v1.2.1