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:
parent
b08e161e27
commit
2ad836ce6d
1 changed files with 15 additions and 11 deletions
26
configure.ac
26
configure.ac
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue