aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
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',
)