mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
meson: don't probe for -Werror if --werror is enabled
Meson has its own mechanism to turn on -Werror with the --werror option. If this is set, then there is no reason for libvirt to check for -Werror itself. We remove the summary line output because it is potentially misleading when libvirt hasn't enabled -Werror, but meson has. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
a9461d456c
commit
3c3c55be66
@ -207,7 +207,7 @@ cc = meson.get_compiler('c')
|
|||||||
cc_flags = []
|
cc_flags = []
|
||||||
|
|
||||||
git_werror = get_option('git_werror')
|
git_werror = get_option('git_werror')
|
||||||
if git_werror.enabled() or git_werror.auto() and git
|
if (git_werror.enabled() or git_werror.auto()) and git and not get_option('werror')
|
||||||
cc_flags += [ '-Werror' ]
|
cc_flags += [ '-Werror' ]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -2269,7 +2269,6 @@ else
|
|||||||
loader_res = ''
|
loader_res = ''
|
||||||
endif
|
endif
|
||||||
misc_summary = {
|
misc_summary = {
|
||||||
'Use -Werror': cc_flags.contains('-Werror'),
|
|
||||||
'Warning Flags': supported_cc_flags,
|
'Warning Flags': supported_cc_flags,
|
||||||
'docs': gen_docs,
|
'docs': gen_docs,
|
||||||
'tests': build_tests,
|
'tests': build_tests,
|
||||||
|
Loading…
Reference in New Issue
Block a user