We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52b610b + 6218b1b commit 432fb67Copy full SHA for 432fb67
src/util/invariant.cpp
@@ -20,7 +20,7 @@ Author: Martin Brain, [email protected]
20
// So we should include something explicitly from the C library
21
// to check if the C library is glibc.
22
#include <assert.h>
23
-#ifdef __GLIBC__
+#if defined(__GLIBC__) || defined(__APPLE__)
24
25
// GCC needs LINKFLAGS="-rdynamic" to give function names in the backtrace
26
#include <execinfo.h>
@@ -78,7 +78,7 @@ static bool output_demangled_name(
78
void print_backtrace(
79
std::ostream &out)
80
{
81
82
void * stack[50] = {};
83
84
std::size_t entries=backtrace(stack, sizeof(stack) / sizeof(void *));
0 commit comments