diff --git a/meson.build b/meson.build index e5863667..b5808ddc 100644 --- a/meson.build +++ b/meson.build @@ -14,7 +14,9 @@ cc = meson.get_compiler('c') add_project_arguments( ['-D_POSIX_C_SOURCE=200809L', '-D_GNU_SOURCE=200809L'] + - (is_debug_build ? ['-D_DEBUG'] : []) + + (is_debug_build + ? ['-D_DEBUG'] + : [cc.get_supported_arguments('-fno-asynchronous-unwind-tables')]) + cc.get_supported_arguments( ['-fstrict-aliasing', '-Wstrict-aliasing']),