mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 05:17:54 +03:00
meson: actually check for -Wframe-larger-than
All other warning flags are checked for compiler support, so we shouldn't blindly assume this one always exists. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
a0e5aca072
commit
36489081b0
@ -499,10 +499,12 @@ if cc.has_argument('-Wsuggest-attribute=format')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# used in tests
|
# used in tests
|
||||||
cc_flags_relaxed_frame_limit = [
|
cc_flags_relaxed_frame_limit = []
|
||||||
|
if cc.has_argument('-Wframe-larger-than=262144')
|
||||||
|
cc_flags_relaxed_frame_limit += [
|
||||||
'-Wframe-larger-than=262144',
|
'-Wframe-larger-than=262144',
|
||||||
]
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
# various linker checks
|
# various linker checks
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user