summaryrefslogtreecommitdiffstats
path: root/llvm/cmake
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-05-20 21:26:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-05-20 21:26:00 +0000
commitabab5d236dc453f7804dc00155c611da860274d5 (patch)
tree03dca309de68f10f3bcc72ed0ee55d831fcc9da7 /llvm/cmake
parentebed1fe0de88ef664f9f51d079f5b22eb7f996fe (diff)
downloadbcm5719-llvm-abab5d236dc453f7804dc00155c611da860274d5.tar.gz
bcm5719-llvm-abab5d236dc453f7804dc00155c611da860274d5.zip
Add a configure-time check for the existence of sigaltstack. It seems that some
systems provide a <signal.h> that doesn't declare it. llvm-svn: 270278
Diffstat (limited to 'llvm/cmake')
-rwxr-xr-xllvm/cmake/config-ix.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index b3f225f0740..7149e13b07e 100755
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -157,6 +157,9 @@ 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 )
+ check_symbol_exists(sigaltstack signal.h HAVE_SIGALTSTACK)
+endif()
if( HAVE_SYS_UIO_H )
check_symbol_exists(writev sys/uio.h HAVE_WRITEV)
endif()
OpenPOWER on IntegriCloud