mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
[libcxxabi] Check __SEH__, when checking if ARM EHABI is implied
ARM EHABI isn't signalled by any specific compiler builtin define, but is implied by the lack of defines specifying any other exception handling mechanism, `__USING_SJLJ_EXCEPTIONS__` or `__ARM_DWARF_EH__`. As Windows SEH also can be used for unwinding, check for the `__SEH__` define too, in the same way. Differential Revision: https://reviews.llvm.org/D126866
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#define ____CXXABI_CONFIG_H
|
||||
|
||||
#if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) && \
|
||||
!defined(__ARM_DWARF_EH__)
|
||||
!defined(__ARM_DWARF_EH__) && !defined(__SEH__)
|
||||
#define _LIBCXXABI_ARM_EHABI
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user