diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2020-08-19 16:22:21 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2020-08-19 16:22:21 +0000 |
| commit | ce57bfa1ea1b33ed6626f8f3769e4b3b1300ed43 (patch) | |
| tree | 997bde623e65cdca5089f8a093d5f2fbf4e1caae | |
| parent | Merge branch 'selection-exclude-trailing-empty-cells' into master (diff) | |
meson: use "-fno-asynchronous-unwind-tables" for non-debug builds
This removes the DWARF stack unwinding tables, which shrinks the
".eh_frame" and ".eh_frame_hdr" sections by about 24KiB. Stack
unwinding tables are pretty useless to a C program compiled in
release mode.
| -rw-r--r-- | meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
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']), |
