mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
meson: always disable stack-protector and enable strict-aliasing
This commit is contained in:
parent
cea75625e2
commit
3073b88d09
1 changed files with 6 additions and 1 deletions
|
|
@ -13,7 +13,12 @@ is_debug_build = get_option('buildtype').startswith('debug')
|
|||
cc = meson.get_compiler('c')
|
||||
|
||||
add_project_arguments(
|
||||
['-D_GNU_SOURCE=200809L'] + (is_debug_build ? ['-D_DEBUG'] : []),
|
||||
['-D_GNU_SOURCE=200809L'] + (is_debug_build ? ['-D_DEBUG'] : []) +
|
||||
cc.get_supported_arguments(
|
||||
['-fno-stack-protector',
|
||||
'-fstrict-aliasing',
|
||||
'-Wstrict-aliasing',
|
||||
'-Wno-missing-profile']),
|
||||
language: 'c',
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue