From b7e5e7db8524340717d23cefb07cd788937aca22 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Wed, 7 Dec 2016 18:53:04 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288956 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/config-ix.cmake | 1 + include/llvm/Config/config.h.cmake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 3e37e585427..9c4658eb22a 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -78,6 +78,7 @@ 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) # library checks if( NOT PURE_WINDOWS ) diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake index ebe33d5fea3..ccdba3dd058 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -17,7 +17,7 @@ #cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE} /* Define to 1 if you have the header file. */ -#undef HAVE_CRASHREPORTERCLIENT_H +#cmakedefine HAVE_CRASHREPORTERCLIENT_H /* can use __crashreporter_info__ */ #undef HAVE_CRASHREPORTER_INFO