From: Joerg Sonnenberger Date: Fri, 30 Sep 2016 20:06:19 +0000 (+0000) Subject: Turn ENABLE_CRASH_OVERRIDES into a 0/1 definition. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8588ac73f8891c0a7a23fe87825753546766cff;p=llvm Turn ENABLE_CRASH_OVERRIDES into a 0/1 definition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282919 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake index eafab762dae..39b38999d44 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -10,8 +10,8 @@ /* Define to 1 to enable backtraces, and to 0 otherwise. */ #cmakedefine01 ENABLE_BACKTRACES -/* Define to enable crash overrides */ -#cmakedefine ENABLE_CRASH_OVERRIDES +/* Define to 1 to enable crash overrides, and to 0 otherwise. */ +#cmakedefine01 ENABLE_CRASH_OVERRIDES /* Define if position independent code is enabled */ #cmakedefine ENABLE_PIC diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc index d709d2b133d..46b640a8e04 100644 --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -475,7 +475,7 @@ void llvm::sys::PrintStackTraceOnErrorSignal(StringRef Argv0, AddSignalHandler(PrintStackTraceSignalHandler, nullptr); -#if defined(__APPLE__) && defined(ENABLE_CRASH_OVERRIDES) +#if defined(__APPLE__) && ENABLE_CRASH_OVERRIDES // Environment variable to disable any kind of crash dialog. if (DisableCrashReporting || getenv("LLVM_DISABLE_CRASH_REPORT")) { mach_port_t self = mach_task_self();