enable traces on apple

This commit is contained in:
Daan 2021-12-10 12:08:41 -08:00
parent 65b2cebcef
commit b6e2b6e975
3 changed files with 7 additions and 12 deletions

View file

@ -376,7 +376,7 @@ void _mi_stack_trace_print(const char* msg, void** strace, size_t len, const mi_
}
}
}
#elif (MI_DEBUG_TRACE > 0) && (defined(__linux__) || defined(__FreeBSD__))
#elif (MI_DEBUG_TRACE > 0) && (defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__))
#include <execinfo.h>
#define MI_TRACE_LEN (64)
void _mi_stack_trace_capture(void** strace, size_t len, size_t skip) {