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:
Daniel P. Berrangé 2021-04-07 18:19:32 +01:00
parent a0e5aca072
commit 36489081b0

View File

@ -499,10 +499,12 @@ if cc.has_argument('-Wsuggest-attribute=format')
endif
# 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',
]
]
endif
# various linker checks