Turn ENABLE_CRASH_OVERRIDES into a 0/1 definition.
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 30 Sep 2016 20:06:19 +0000 (20:06 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 30 Sep 2016 20:06:19 +0000 (20:06 +0000)
llvm-svn: 282919

llvm/include/llvm/Config/config.h.cmake
llvm/lib/Support/Unix/Signals.inc

index eafab76..39b3899 100644 (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
index d709d2b..46b640a 100644 (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();