meson: always disable stack-protector and enable strict-aliasing

This commit is contained in:
Daniel Eklöf 2020-02-16 14:40:15 +01:00
parent cea75625e2
commit 3073b88d09
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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',
)