llvm.org GIT mirror llvm / c14b21a
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288977 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 3 years ago
2 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
7878 check_include_file(mach/mach.h HAVE_MACH_MACH_H)
7979 check_include_file(histedit.h HAVE_HISTEDIT_H)
8080 check_include_file(CrashReporterClient.h HAVE_CRASHREPORTERCLIENT_H)
81 if(APPLE)
82 include(CheckCSourceCompiles)
83 CHECK_C_SOURCE_COMPILES("
84 static const char *__crashreporter_info__ = 0;
85 asm(\".desc ___crashreporter_info__, 0x10\");
86 int main() { return 0; }"
87 HAVE_CRASHREPORTER_INFO)
88 endif()
8189
8290 # library checks
8391 if( NOT PURE_WINDOWS )
1919 #cmakedefine HAVE_CRASHREPORTERCLIENT_H
2020
2121 /* can use __crashreporter_info__ */
22 #undef HAVE_CRASHREPORTER_INFO
22 #cmakedefine01 HAVE_CRASHREPORTER_INFO
2323
2424 /* Define to 1 if you have the declaration of `arc4random', and to 0 if you
2525 don't. */