Skip to content

Commit 4c746ae

Browse files
committed
GCC 14 support:
- also fix bug for header only fmt
1 parent 317d9b2 commit 4c746ae

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

subprojects/packagefiles/fmt-10.2.0-gcc-bug.diff

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/meson.build b/meson.build
2-
index 45cd1d1..a3ff1e6 100644
2+
index 45cd1d1..c648181 100644
33
--- a/meson.build
44
+++ b/meson.build
55
@@ -1,7 +1,10 @@
@@ -14,3 +14,12 @@ index 45cd1d1..a3ff1e6 100644
1414
if get_option('default_library') == 'shared'
1515
fmt_private_cpp_args += ['-DFMT_LIB_EXPORT']
1616
fmt_interface_cpp_args += ['-DFMT_SHARED']
17+
@@ -29,7 +32,7 @@ fmt_dep = declare_dependency(
18+
19+
fmt_header_only_dep = declare_dependency(
20+
include_directories: 'include',
21+
- compile_args: '-DFMT_HEADER_ONLY',
22+
+ compile_args: [cpp.get_supported_arguments('-Wno-tautological-compare'), '-DFMT_HEADER_ONLY'],
23+
)
24+
25+
pkg_mod = import('pkgconfig')

0 commit comments

Comments
 (0)