aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libcxxabi/src
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-02-28 00:35:29 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-03-25 00:34:11 +0700
commit90338c69f75bf4c0b07bd7552b9c47755194eca8 (patch)
tree902d6292433d5b740bcdb8df2025825246ed5397 /system/lib/libcxxabi/src
parent1a0bccc11d4ba74f8891b70dca1a723a4a7b932a (diff)
Get things working with the new libcxx / libcxxabi.
Diffstat (limited to 'system/lib/libcxxabi/src')
-rw-r--r--system/lib/libcxxabi/src/cxa_new_delete.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/lib/libcxxabi/src/cxa_new_delete.cpp b/system/lib/libcxxabi/src/cxa_new_delete.cpp
index 6352001b..e6fee5f2 100644
--- a/system/lib/libcxxabi/src/cxa_new_delete.cpp
+++ b/system/lib/libcxxabi/src/cxa_new_delete.cpp
@@ -228,4 +228,15 @@ bad_array_new_length::what() const _NOEXCEPT
return "bad_array_new_length";
}
+#ifdef EMSCRIPTEN
+// We don't build the new.cpp from libcxx, so we need to define this.
+void
+__throw_bad_alloc()
+{
+#ifndef _LIBCPP_NO_EXCEPTIONS
+ throw bad_alloc();
+#endif
+}
+#endif
+
} // std