[llvm] r288956 - [CMake] Add a check for HAVE_CRASHREPORTERCLIENT_H

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 10:53:04 PST 2016


Author: cbieneman
Date: Wed Dec  7 12:53:04 2016
New Revision: 288956

URL: http://llvm.org/viewvc/llvm-project?rev=288956&view=rev
Log:
[CMake] Add a check for HAVE_CRASHREPORTERCLIENT_H

The CMake build has been hardcoding this to undef forever, we shouldn't have been doing that.

Modified:
    llvm/trunk/cmake/config-ix.cmake
    llvm/trunk/include/llvm/Config/config.h.cmake

Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=288956&r1=288955&r2=288956&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Wed Dec  7 12:53:04 2016
@@ -78,6 +78,7 @@ check_symbol_exists(FE_INEXACT "fenv.h"
 
 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)
 
 # library checks
 if( NOT PURE_WINDOWS )

Modified: llvm/trunk/include/llvm/Config/config.h.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.cmake?rev=288956&r1=288955&r2=288956&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Config/config.h.cmake (original)
+++ llvm/trunk/include/llvm/Config/config.h.cmake Wed Dec  7 12:53:04 2016
@@ -17,7 +17,7 @@
 #cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE}
 
 /* Define to 1 if you have the <CrashReporterClient.h> header file. */
-#undef HAVE_CRASHREPORTERCLIENT_H
+#cmakedefine HAVE_CRASHREPORTERCLIENT_H
 
 /* can use __crashreporter_info__ */
 #undef HAVE_CRASHREPORTER_INFO




More information about the llvm-commits mailing list