[PATCH] D23864: [asan] Disable CreateSigAltStack from Unix/Signals.inc for asan builds

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 20:46:16 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL279717: [asan] Disable CreateSigAltStack from Unix/Signals.inc for asan builds (authored by vitalybuka).

Changed prior to commit:
  https://reviews.llvm.org/D23864?vs=69199&id=69200#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23864

Files:
  llvm/trunk/cmake/config-ix.cmake

Index: llvm/trunk/cmake/config-ix.cmake
===================================================================
--- llvm/trunk/cmake/config-ix.cmake
+++ llvm/trunk/cmake/config-ix.cmake
@@ -170,7 +170,8 @@
   check_symbol_exists(siglongjmp setjmp.h HAVE_SIGLONGJMP)
   check_symbol_exists(sigsetjmp setjmp.h HAVE_SIGSETJMP)
 endif()
-if( HAVE_SIGNAL_H )
+// AddressSanitizer conflicts with lib/Support/Unix/Signals.inc
+if( HAVE_SIGNAL_H AND NOT LLVM_USE_SANITIZER MATCHES ".*Address.*")
   check_symbol_exists(sigaltstack signal.h HAVE_SIGALTSTACK)
 endif()
 if( HAVE_SYS_UIO_H )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23864.69200.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160825/0e5bb9ac/attachment.bin>


More information about the llvm-commits mailing list