summaryrefslogtreecommitdiff
path: root/absl/debugging
diff options
context:
space:
mode:
authorGravatar Copybara-Service <copybara-worker@google.com>2022-07-13 07:47:44 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-07-13 07:47:44 -0700
commit3d0956d139933f7906a59a5234d58aabdbb12576 (patch)
tree9f9a45b87515db0279dfad087688f69a93b6f301 /absl/debugging
parente517aaf499f88383000d4ddf6b84417fbbb48791 (diff)
parent0565e00b93a5346273ce49cf7706ebc642162272 (diff)
Merge pull request #1217 from anpol:macos-sigaltstack
PiperOrigin-RevId: 460713135 Change-Id: If7ea94f409edc1e4024d7eaa4ae025b0b258fc02
Diffstat (limited to 'absl/debugging')
-rw-r--r--absl/debugging/failure_signal_handler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/absl/debugging/failure_signal_handler.cc b/absl/debugging/failure_signal_handler.cc
index affade3b..8e75e54b 100644
--- a/absl/debugging/failure_signal_handler.cc
+++ b/absl/debugging/failure_signal_handler.cc
@@ -50,7 +50,9 @@
#ifndef _WIN32
#define ABSL_HAVE_SIGACTION
// Apple WatchOS and TVOS don't allow sigaltstack
-#if !(defined(TARGET_OS_WATCH) && TARGET_OS_WATCH) && \
+// Apple macOS has sigaltstack, but using it makes backtrace() unusable.
+#if !(defined(TARGET_OS_OSX) && TARGET_OS_OSX) && \
+ !(defined(TARGET_OS_WATCH) && TARGET_OS_WATCH) && \
!(defined(TARGET_OS_TV) && TARGET_OS_TV) && !defined(__QNX__)
#define ABSL_HAVE_SIGALTSTACK
#endif