diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-16 13:40:15 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-16 13:40:15 +0000 |
| commit | 3073b88d09b6a3c964363dd7706a64a60c1c59ab (patch) | |
| tree | 197a5a30bc44abb712da1b2038469a16c17ae6fc | |
| parent | log: always log file:lineno (diff) | |
meson: always disable stack-protector and enable strict-aliasing
| -rw-r--r-- | meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build index fd85b119..2da5c65f 100644 --- a/meson.build +++ b/meson.build @@ -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', ) |
