The run-time appears to have a slightly different behaviour wrt exception
ownership. We don't strictly need this code path on Mac, so use regular C++
exceptions until I can figure out what happens there.
Change-Id: Idd540c8656d25ffdb4002843f398114881e33214
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
LIBS += -ldl
}
-!win32:!ios {
+!win32:!ios:!mac {
*g++*:equals(QT_ARCH, "arm") {
static_libgcc = $$system($$QMAKE_CXX -print-file-name=libgcc.a)
LIBS += $$static_libgcc
#include "qv4engine_p.h"
#include "qv4unwindhelper_p.h"
-#ifdef V4_CXX_ABI_EXCEPTION
+#if defined(V4_CXX_ABI_EXCEPTION) || defined(Q_OS_DARWIN)
#include <unwind.h>
struct BacktraceHelper
engine = context->engine;
currentNativeFrame = 0;
-#ifdef V4_CXX_ABI_EXCEPTION
+#if defined(V4_CXX_ABI_EXCEPTION) || defined(Q_OS_DARWIN)
UnwindHelper::prepareForUnwind(context);
nativeFrameCount = get_backtrace_from_libunwind(&trace[0], sizeof(trace) / sizeof(trace[0]));