trivial: Turn off -fanalyzer by default

This has several false positives in Fedora 36 and also slows down the
build considerably.
This commit is contained in:
Richard Hughes 2022-01-31 11:17:24 +00:00
parent 4b48b2ea27
commit 7180c8993e
2 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,7 @@ warning_flags = [
'-Wvla',
'-Wwrite-strings'
]
if host_machine.system() != 'windows'
if get_option('static_analysis') and host_machine.system() != 'windows'
warning_flags += ['-fanalyzer', '-Wno-analyzer-null-dereference']
endif
cc = meson.get_compiler('c')

View File

@ -1,5 +1,6 @@
option('build', type : 'combo', choices : ['all', 'standalone', 'library'], value : 'all', description : 'build type')
option('consolekit', type : 'boolean', value : true, description : 'enable ConsoleKit support')
option('static_analysis', type : 'boolean', value : false, description : 'enable GCC static analysis support')
option('firmware-packager', type : 'boolean', value : true, description : 'enable firmware-packager installation')
option('docs', type : 'combo', choices : ['none', 'gtkdoc', 'docgen'], value : 'docgen', description : 'developer documentation type')
option('introspection', type : 'boolean', value : true, description : 'generate GObject Introspection data')