File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 19
19
20
20
namespace __cxxabiv1 {
21
21
22
- #ifdef __USING_EMSCRIPTEN_EXCEPTIONS__
22
+ #ifdef __EMSCRIPTEN_EXCEPTIONS__
23
23
24
24
struct _LIBCXXABI_HIDDEN __cxa_exception {
25
25
size_t referenceCount;
@@ -184,7 +184,7 @@ extern "C" _LIBCXXABI_FUNC_VIS __cxa_eh_globals * __cxa_get_globals_fast ();
184
184
extern " C" _LIBCXXABI_FUNC_VIS void * __cxa_allocate_dependent_exception ();
185
185
extern " C" _LIBCXXABI_FUNC_VIS void __cxa_free_dependent_exception (void * dependent_exception);
186
186
187
- #endif // !__USING_EMSCRIPTEN_EXCEPTIONS__
187
+ #endif // !__EMSCRIPTEN_EXCEPTIONS__
188
188
189
189
} // namespace __cxxabiv1
190
190
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ __attribute__((noreturn))
73
73
void
74
74
terminate () noexcept
75
75
{
76
- #if !defined(_LIBCXXABI_NO_EXCEPTIONS) && !defined(__USING_EMSCRIPTEN_EXCEPTIONS__ )
76
+ #if !defined(_LIBCXXABI_NO_EXCEPTIONS) && !defined(__EMSCRIPTEN_EXCEPTIONS__ )
77
77
// If there might be an uncaught exception
78
78
using namespace __cxxabiv1 ;
79
79
__cxa_eh_globals* globals = __cxa_get_globals_fast ();
Original file line number Diff line number Diff line change @@ -1560,6 +1560,6 @@ int __cxa_is_pointer_type(__shim_type_info* type) {
1560
1560
}
1561
1561
1562
1562
}
1563
- #endif // __USING_EMSCRIPTEN_EXCEPTIONS__
1563
+ #endif // __EMSCRIPTEN_EXCEPTIONS__
1564
1564
1565
1565
} // __cxxabiv1
Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ def main(args):
415
415
416
416
cxxflags = [
417
417
'-I' + utils .path_from_root ('system/lib/libcxxabi/src' ),
418
- '-D__USING_EMSCRIPTEN_EXCEPTIONS__ ' ,
418
+ '-D__EMSCRIPTEN_EXCEPTIONS__ ' ,
419
419
'-I' + utils .path_from_root ('system/lib/wasmfs/' ),
420
420
'-std=c++17' ,
421
421
]
Original file line number Diff line number Diff line change @@ -1570,7 +1570,7 @@ def get_cflags(self):
1570
1570
if self .eh_mode == Exceptions .NONE :
1571
1571
cflags .append ('-D_LIBCXXABI_NO_EXCEPTIONS' )
1572
1572
elif self .eh_mode == Exceptions .EMSCRIPTEN :
1573
- cflags .append ('-D__USING_EMSCRIPTEN_EXCEPTIONS__ ' )
1573
+ cflags .append ('-D__EMSCRIPTEN_EXCEPTIONS__ ' )
1574
1574
# The code used to interpret exceptions during terminate
1575
1575
# is not compatible with emscripten exceptions.
1576
1576
cflags .append ('-DLIBCXXABI_SILENT_TERMINATE' )
@@ -1684,7 +1684,7 @@ def get_cflags(self):
1684
1684
if self .eh_mode == Exceptions .NONE :
1685
1685
cflags .append ('-D_LIBUNWIND_HAS_NO_EXCEPTIONS' )
1686
1686
elif self .eh_mode == Exceptions .EMSCRIPTEN :
1687
- cflags .append ('-D__USING_EMSCRIPTEN_EXCEPTIONS__ ' )
1687
+ cflags .append ('-D__EMSCRIPTEN_EXCEPTIONS__ ' )
1688
1688
elif self .eh_mode == Exceptions .WASM :
1689
1689
cflags .append ('-D__WASM_EXCEPTIONS__' )
1690
1690
return cflags
You can’t perform that action at this time.
0 commit comments