9866520
From 16d2c90e7b046137d5a0386ffda9c111ebd3761c Mon Sep 17 00:00:00 2001
9866520
From: Michal Babej <michal.babej@tut.fi>
9866520
Date: Tue, 9 Jan 2018 14:22:42 +0100
9866520
Subject: [PATCH 10/14] Add "-fsanitize-recover=address" to ASAN flags
9866520
9866520
When used with env variable ASAN_OPTIONS=halt_on_error=0, this
9866520
should enable ASAN builds to continue after first error - unlike
9866520
the default which is to exit after first error.
9866520
---
9866520
 lib/CMakeLists.txt | 2 +-
9866520
 1 file changed, 1 insertion(+), 1 deletion(-)
9866520
9866520
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
9866520
index 57690091..2cd3291d 100644
9866520
--- a/lib/CMakeLists.txt
9866520
+++ b/lib/CMakeLists.txt
9866520
@@ -34,7 +34,7 @@ endif()
9866520
 set(SANITIZER_OPTIONS "")
9866520
 
9866520
 if(ENABLE_ASAN)
9866520
-  list(APPEND SANITIZER_OPTIONS "-fsanitize=address")
9866520
+  list(APPEND SANITIZER_OPTIONS "-fsanitize=address" "-fsanitize-recover=address")
9866520
   list(APPEND SANITIZER_LIBS "asan")
9866520
 endif()
9866520
 
9866520
-- 
9866520
2.15.1
9866520