summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-12-07 20:55:38 +0000
committerChris Bieneman <beanz@apple.com>2016-12-07 20:55:38 +0000
commitbb413618149108d5b1decb8836824b1992873e8f (patch)
tree1e79f8ec4c040120229a4530b195b60406818d2e /llvm
parenta29d98fcb5579fe1574ff94a8caf60073027dddd (diff)
downloadbcm5719-llvm-bb413618149108d5b1decb8836824b1992873e8f.tar.gz
bcm5719-llvm-bb413618149108d5b1decb8836824b1992873e8f.zip
[CMake] Add check for HAVE_CRASHREPORTER_INFO
This was also explicitly undef in CMake for some unknown reason. Hopefully this one won't kill all the bots. llvm-svn: 288977
Diffstat (limited to 'llvm')
-rwxr-xr-xllvm/cmake/config-ix.cmake8
-rw-r--r--llvm/include/llvm/Config/config.h.cmake2
2 files changed, 9 insertions, 1 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 9c4658eb22a..7ce2eb0adf0 100755
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -79,6 +79,14 @@ check_symbol_exists(FE_INEXACT "fenv.h" HAVE_DECL_FE_INEXACT)
check_include_file(mach/mach.h HAVE_MACH_MACH_H)
check_include_file(histedit.h HAVE_HISTEDIT_H)
check_include_file(CrashReporterClient.h HAVE_CRASHREPORTERCLIENT_H)
+if(APPLE)
+ include(CheckCSourceCompiles)
+ CHECK_C_SOURCE_COMPILES("
+ static const char *__crashreporter_info__ = 0;
+ asm(\".desc ___crashreporter_info__, 0x10\");
+ int main() { return 0; }"
+ HAVE_CRASHREPORTER_INFO)
+endif()
# library checks
if( NOT PURE_WINDOWS )
diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake
index ccdba3dd058..1331c4f4cbd 100644
--- a/llvm/include/llvm/Config/config.h.cmake
+++ b/llvm/include/llvm/Config/config.h.cmake
@@ -20,7 +20,7 @@
#cmakedefine HAVE_CRASHREPORTERCLIENT_H
/* can use __crashreporter_info__ */
-#undef HAVE_CRASHREPORTER_INFO
+#cmakedefine01 HAVE_CRASHREPORTER_INFO
/* Define to 1 if you have the declaration of `arc4random', and to 0 if you
don't. */
OpenPOWER on IntegriCloud