lib/fmt/meson.build: suppress -Warray-bounds with GCC 13

This commit is contained in:
Max Kellermann 2024-07-29 22:08:54 +02:00
parent 323517753d
commit fb151c8662
1 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,14 @@
libfmt = dependency('fmt', version: '>= 9', fallback: ['fmt', 'fmt_dep']) libfmt = dependency('fmt', version: '>= 9', fallback: ['fmt', 'fmt_dep'])
if compiler.get_id() == 'gcc' and compiler.version().version_compare('>=13') and compiler.version().version_compare('<14')
libfmt = declare_dependency(
dependencies: libfmt,
# suppress bogus GCC 13 warning: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109717
compile_args: ['-Wno-array-bounds'],
)
endif
fmt = static_library( fmt = static_library(
'fmt', 'fmt',
'ExceptionFormatter.cxx', 'ExceptionFormatter.cxx',