0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-28 17:52:54 +01:00

configure: Use asynchronous-unwind-tables; minor reorg.

This commit is contained in:
Jason Volk 2020-06-18 01:58:06 -07:00
parent b08e161e27
commit 2ad836ce6d

View file

@ -643,6 +643,21 @@ AM_COND_IF([GCC],
CXXFLAGS+=" -fvtable-verify=none"
])
AM_COND_IF([CLANG],
[
CXXFLAGS+=" -fasm-blocks"
])
AM_COND_IF([GCC],
[
CXXFLAGS+=" -fverbose-asm"
])
dnl Exception safety at instruction boundary rather than function boundary
dnl This option is needed to enable noexcept(false) i.e to throw from a
dnl destructor; without this noexcept(false) still terminates.
CXXFLAGS+=" -fasynchronous-unwind-tables"
dnl -fvisibility-inlines-hidden - for optimization; note the address of inline
dnl functions won't be the same between translation units
CXXFLAGS+=" -fvisibility-inlines-hidden"
@ -662,17 +677,6 @@ dnl be sufficiently low or simply immaterial for our uses of them.
dnl
CXXFLAGS+=" -fno-threadsafe-statics"
dnl
AM_COND_IF([GCC],
[
CXXFLAGS+=" -fverbose-asm"
])
AM_COND_IF([CLANG],
[
CXXFLAGS+=" -fasm-blocks"
])
dnl
dnl Compiler warnings
dnl