diff options
author | Eric Christopher <echristo@apple.com> | 2012-09-21 23:03:29 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-09-21 23:03:29 +0000 |
commit | c69bdadac9431efc0cfa6832a321e0f51ab4e6cd (patch) | |
tree | ebc186f796ba7a019152f4d7acaaeb83c76049ae /lib/Support/Unix | |
parent | c91249485527f69cf0d7e7b6dda9d8e6eb46d4b0 (diff) |
Add an --enable-backtraces option to configure to determine
whether or not we want to print out backtrace information. Useful
for libraries that don't need backtrace information on a crash.
rdar://11844710
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix')
-rw-r--r-- | lib/Support/Unix/Signals.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc index b7f83b6ff7..7d161a6a05 100644 --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -243,7 +243,7 @@ void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) { // On glibc systems we have the 'backtrace' function, which works nicely, but // doesn't demangle symbols. static void PrintStackTrace(void *) { -#ifdef HAVE_BACKTRACE +#if defined(HAVE_BACKTRACE) && defined(ENABLE_BACKTRACE) static void* StackTrace[256]; // Use backtrace() to output a backtrace on Linux systems with glibc. int depth = backtrace(StackTrace, |