mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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.
This commit is contained in:
parent
c0ddb78f4a
commit
ce57bfa1ea
1 changed files with 3 additions and 1 deletions
|
|
@ -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']),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue