Turn ENABLE_CRASH_OVERRIDES into a 0/1 definition.

llvm-svn: 282919
This commit is contained in:
Joerg Sonnenberger 2016-09-30 20:06:19 +00:00
parent a74d4452a5
commit 80aa46d9db
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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();