Skip to content

Commit 1dc6e75

Browse files
committed
gcc-14:
- fix build of fmt, use flag in correct spot
1 parent 1659c72 commit 1dc6e75

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
diff --git a/meson.build b/meson.build
2-
index 45cd1d1..13b276d 100644
2+
index 45cd1d1..a3ff1e6 100644
33
--- a/meson.build
44
+++ b/meson.build
5-
@@ -1,10 +1,13 @@
5+
@@ -1,7 +1,10 @@
66
project('fmt', 'cpp', version: '10.2.0', license: 'MIT WITH fmt-exception', default_options: ['cpp_std=c++14'])
77

88
+#TODO: remove with the next release
99
+cpp = meson.get_compiler('cpp')
1010
+
1111
fmt_private_cpp_args = []
12-
fmt_interface_cpp_args = []
12+
-fmt_interface_cpp_args = []
13+
+fmt_interface_cpp_args = [cpp.get_supported_arguments('-Wno-tautological-compare')]
1314
if get_option('default_library') == 'shared'
1415
fmt_private_cpp_args += ['-DFMT_LIB_EXPORT']
15-
- fmt_interface_cpp_args += ['-DFMT_SHARED']
16-
+ fmt_interface_cpp_args += ['-DFMT_SHARED', cpp.get_supported_arguments('-Wno-tautological-compare'),]
17-
endif
18-
19-
fmt_lib = library(
16+
fmt_interface_cpp_args += ['-DFMT_SHARED']

0 commit comments

Comments
 (0)