[PATCH] D24633: [compiler-rt] Don't force ASAN_HAS_EXCEPTIONS to be true for all builds

Francis Ricci via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 15:02:08 PDT 2016


fjricci created this revision.
fjricci added reviewers: kcc, samsonov, compnerd.
fjricci added a subscriber: llvm-commits.
Herald added subscribers: mgorny, beanz, dberris, kubabrecka.

This value is already defaulted to true in asan_internal.h.
Allow the value to be overriden in cases where exceptions are unavailable.

https://reviews.llvm.org/D24633

Files:
  lib/asan/CMakeLists.txt

Index: lib/asan/CMakeLists.txt
===================================================================
--- lib/asan/CMakeLists.txt
+++ lib/asan/CMakeLists.txt
@@ -37,9 +37,6 @@
 set(ASAN_CFLAGS ${SANITIZER_COMMON_CFLAGS})
 append_rtti_flag(OFF ASAN_CFLAGS)
 
-set(ASAN_COMMON_DEFINITIONS
-  ASAN_HAS_EXCEPTIONS=1)
-
 set(ASAN_DYNAMIC_LINK_FLAGS)
 
 if(ANDROID)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24633.71563.patch
Type: text/x-patch
Size: 357 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160915/0b097853/attachment.bin>


More information about the llvm-commits mailing list