mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 03:53:43 +01:00
Disable C++ exception support by default on x86.
This commit is contained in:
parent
ec53de82ec
commit
1227c41d20
2 changed files with 10 additions and 2 deletions
10
configure.in
10
configure.in
|
@ -118,7 +118,15 @@ AC_ARG_ENABLE(debug,
|
|||
|
||||
AC_ARG_ENABLE(cxx_exceptions,
|
||||
[ --enable-cxx-exceptions use libunwind to handle C++ exceptions],
|
||||
[enable_cxx_exceptions=$enableval], [enable_cxx_exceptions=yes])
|
||||
[enable_cxx_exceptions=$enableval],
|
||||
[
|
||||
# C++ exception handling doesn't work too well on x86
|
||||
case $target_arch in
|
||||
x86*) enable_cxx_exceptions=no;;
|
||||
*) enable_cxx_exceptions=yes;;
|
||||
esac
|
||||
])
|
||||
|
||||
if test x$enable_cxx_exceptions = xyes; then
|
||||
AC_MSG_NOTICE([Enabling C++ exception support])
|
||||
fi
|
||||
|
|
|
@ -242,7 +242,7 @@ if [ $plat = $build_plat ]; then
|
|||
fetch_symtab $LIBUNWIND
|
||||
filter_misc
|
||||
check_local_unw_abi
|
||||
if [ x@enable_cxx_exceptions@ = yes ]; then
|
||||
if [ x@enable_cxx_exceptions@ = xyes ]; then
|
||||
check_cxx_abi
|
||||
fi
|
||||
check_empty
|
||||
|
|
Loading…
Reference in a new issue