diff --git a/src/lib/fmt/meson.build b/src/lib/fmt/meson.build index 77c2ef189..87bbea076 100644 --- a/src/lib/fmt/meson.build +++ b/src/lib/fmt/meson.build @@ -1,5 +1,14 @@ 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', 'ExceptionFormatter.cxx',