ref: 51dc0e0ce9a4adb71c40e59cd6350db500f8e0c9
parent: c6c201b3ca6c2020d9b47b0c1240a03030ac5315
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Feb 1 20:19:22 EST 2024
lto-type-mismatch does not exist in clang so skip it
--- a/meson.build
+++ b/meson.build
@@ -15,7 +15,6 @@
'-Wno-missing-field-initializers',
'-Wno-implicit-fallthrough',
'-Werror=odr',
- '-Werror=lto-type-mismatch',
'-Werror=strict-aliasing',
'-fms-extensions',
'-D_DEFAULT_SOURCE',
@@ -106,6 +105,11 @@
add_project_arguments(
'-Wno-microsoft-anon-tag',
'-D__wchar_t=__please_no_wchar_t_thank_you',
+ language: 'c',
+ )
+else
+ add_project_arguments(
+ '-Werror=lto-type-mismatch',
language: 'c',
)
endif