From: Chris Bieneman Date: Wed, 7 Dec 2016 19:28:22 +0000 (+0000) Subject: Fix the apple build issue caused by r288956 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=746d96524f0279ef0aab7bbbe90939006b9bfc9d;p=llvm Fix the apple build issue caused by r288956 Should be checking if HAVE_CRASHREPORTERCLIENT_H is defined not relying on it having a value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288963 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/PrettyStackTrace.cpp b/lib/Support/PrettyStackTrace.cpp index 845745ced69..f49eb0a99a7 100644 --- a/lib/Support/PrettyStackTrace.cpp +++ b/lib/Support/PrettyStackTrace.cpp @@ -79,7 +79,7 @@ static void PrintCurStackTrace(raw_ostream &OS) { } // Integrate with crash reporter libraries. -#if defined (__APPLE__) && HAVE_CRASHREPORTERCLIENT_H +#if defined (__APPLE__) && defined(HAVE_CRASHREPORTERCLIENT_H) // If any clients of llvm try to link to libCrashReporterClient.a themselves, // only one crash info struct will be used. extern "C" {