Blob Blame History Raw
From 16d2c90e7b046137d5a0386ffda9c111ebd3761c Mon Sep 17 00:00:00 2001
From: Michal Babej <michal.babej@tut.fi>
Date: Tue, 9 Jan 2018 14:22:42 +0100
Subject: [PATCH 10/14] Add "-fsanitize-recover=address" to ASAN flags

When used with env variable ASAN_OPTIONS=halt_on_error=0, this
should enable ASAN builds to continue after first error - unlike
the default which is to exit after first error.
---
 lib/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 57690091..2cd3291d 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -34,7 +34,7 @@ endif()
 set(SANITIZER_OPTIONS "")
 
 if(ENABLE_ASAN)
-  list(APPEND SANITIZER_OPTIONS "-fsanitize=address")
+  list(APPEND SANITIZER_OPTIONS "-fsanitize=address" "-fsanitize-recover=address")
   list(APPEND SANITIZER_LIBS "asan")
 endif()
 
-- 
2.15.1