forked from OSchip/llvm-project
[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:
parent
dfa88927ae
commit
4a3722a2c3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue