From 0dd7714d4da9824cc1294d6e200dfc9f44fba182 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 22 May 2014 21:44:06 +0200 Subject: Add AddressSanitizer (ASAN) build option --enable-asan for autotools -D ENABLE_ASAN:BOOL=TRUE for CMake Need Clang/LLVM >= 3.1 or GCC >= 4.9 More information about ASAN https://code.google.com/p/address-sanitizer/wiki/AddressSanitizer Change-Id: I833d4216d9508b8f7550ebc1dff6326734bdb53a Reviewed-on: https://code.wireshark.org/review/1727 Reviewed-by: Peter Wu Reviewed-by: Alexis La Goutte --- CMakeOptions.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeOptions.txt') diff --git a/CMakeOptions.txt b/CMakeOptions.txt index c3c5983fef..03015d28ab 100644 --- a/CMakeOptions.txt +++ b/CMakeOptions.txt @@ -20,6 +20,7 @@ option(AUTOGEN_pidl "Autogenerate pidl dissectors" OFF) option(DISABLE_WERROR "Do not treat warnings as errors" OFF) option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF) option(ENABLE_CODE_ANALYSIS "Enable the compiler's static analyzer if possible" OFF) +option(ENABLE_ASAN "Enable AddressSanitizer (ASAN) for debugging (May be slow down)" OFF) # # Leave GTK2 the default on Windows, looks better than GTK3 -- cgit v1.2.1