[llvm] r279717 - [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:32:50 PDT 2016
Author: vitalybuka
Date: Wed Aug 24 22:32:49 2016
New Revision: 279717
URL: http://llvm.org/viewvc/llvm-project?rev=279717&view=rev
Log:
[asan] Disable CreateSigAltStack from Unix/Signals.inc for asan builds
Summary: Asan fails to UnsetAlternateSignalStack if it set by Unix/Signals.inc
Reviewers: kcc
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D23864
Modified:
llvm/trunk/cmake/config-ix.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=279717&r1=279716&r2=279717&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Wed Aug 24 22:32:49 2016
@@ -170,7 +170,8 @@ if( HAVE_SETJMP_H )
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 )
More information about the llvm-commits
mailing list