diff options
author | Stephen Hines <srhines@google.com> | 2012-03-07 18:26:49 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2012-03-07 18:26:49 -0800 |
commit | 71b63066bb17e7f53a7181b270e17e6ade8192be (patch) | |
tree | d5c0752cdca8db1430557f1388a722bba8e5d8e4 /lib/Support/Unix/Signals.inc | |
parent | 8019aac390baf43b3907d92928bad7fbe62588c6 (diff) | |
download | external_llvm-71b63066bb17e7f53a7181b270e17e6ade8192be.zip external_llvm-71b63066bb17e7f53a7181b270e17e6ade8192be.tar.gz external_llvm-71b63066bb17e7f53a7181b270e17e6ade8192be.tar.bz2 |
Patch apple-related breakage.
Change-Id: I77cc6b6c465dfc803c65144236c09e9592b90c87
Diffstat (limited to 'lib/Support/Unix/Signals.inc')
-rw-r--r-- | lib/Support/Unix/Signals.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc index 75b91ea..c3885e1 100644 --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -266,7 +266,7 @@ static void PrintStackTrace(void *) { void llvm::sys::PrintStackTraceOnErrorSignal() { AddSignalHandler(PrintStackTrace, 0); -#if defined(__APPLE__) +#if defined(__APPLE__) && !defined(ANDROID) // Environment variable to disable any kind of crash dialog. if (getenv("LLVM_DISABLE_CRASH_REPORT")) { mach_port_t self = mach_task_self(); @@ -292,7 +292,7 @@ void llvm::sys::PrintStackTraceOnErrorSignal() { // the same linkage unit by just defining our own versions of the assert handler // and abort. -#ifdef __APPLE__ +#if defined(__APPLE__) && !defined(ANDROID) #include <signal.h> #include <pthread.h> |