aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-05-11 11:01:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-05-11 11:04:29 +0000
commit98c84e632676f3e8515789bacee81d3ed0888f3a (patch)
treecf9d7dd97f74efea9671a7e17c8aa4a64f096f34 /meson.build
parentkeymap: no reason keypad keys shouldn't map shift (diff)
meson: add -Dfanalyzer=false|true
When enabled, compile with -fanalyzer
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index a0e602bb..2338ceeb 100644
--- a/meson.build
+++ b/meson.build
@@ -96,7 +96,10 @@ add_project_arguments(
cc.get_supported_arguments(
['-pedantic',
'-fstrict-aliasing',
- '-Wstrict-aliasing']),
+ '-Wstrict-aliasing']) +
+ (get_option('fanalyzer')
+ ? ['-fanalyzer']
+ : []),
language: 'c',
)