mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-05 18:49:06 +00:00
Turn ENABLE_CRASH_OVERRIDES into a 0/1 definition.
llvm-svn: 282919
This commit is contained in:
parent
a74d4452a5
commit
80aa46d9db
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user