Add debug build of libc++-abi
There is code in libc++-abi that contains asserts so being able to build
it is debug mode has some value.
diff --git a/embuilder.py b/embuilder.py
index cbbb15b..7219756 100755
--- a/embuilder.py
+++ b/embuilder.py
@@ -34,6 +34,8 @@
'libc++abi',
'libc++abi-except',
'libc++abi-noexcept',
+ 'libc++abi-debug-except',
+ 'libc++abi-debug-noexcept',
'libc++',
'libc++-except',
'libc++-noexcept',
diff --git a/tools/system_libs.py b/tools/system_libs.py
index 41d5af0..2d25fc7 100644
--- a/tools/system_libs.py
+++ b/tools/system_libs.py
@@ -1140,7 +1140,7 @@
return super().can_use() and settings.SHARED_MEMORY
-class libcxxabi(NoExceptLibrary, MTLibrary):
+class libcxxabi(NoExceptLibrary, MTLibrary, DebugLibrary):
name = 'libc++abi'
cflags = [
'-Oz',