mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-05-15 21:45:03 -04:00
meson: add -Dfanalyzer=false|true
When enabled, compile with -fanalyzer
This commit is contained in:
parent
6183d1b767
commit
98c84e6326
2 changed files with 6 additions and 1 deletions
|
|
@ -96,7 +96,10 @@ add_project_arguments(
|
|||
cc.get_supported_arguments(
|
||||
['-pedantic',
|
||||
'-fstrict-aliasing',
|
||||
'-Wstrict-aliasing']),
|
||||
'-Wstrict-aliasing']) +
|
||||
(get_option('fanalyzer')
|
||||
? ['-fanalyzer']
|
||||
: []),
|
||||
language: 'c',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -27,3 +27,5 @@ option('utmp-backend', type: 'combo', value: 'auto', choices: ['none', 'libutemp
|
|||
description: 'Which utmp logging backend to use. This affects how (with what arguments) the utmp helper binary (see \'utmp-default-helper-path\')is called. Default: auto (linux=libutempter, freebsd=ulog, others=none)')
|
||||
option('utmp-default-helper-path', type: 'string', value: 'auto',
|
||||
description: 'Default path to the utmp helper binary. Default: auto-detect')
|
||||
|
||||
option('fanalyzer', type: 'boolean', value: false, description: 'enable GCC static analyzer')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue