From 9edeeae8f37a5db4c4d869dee07652c6215b2a69 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 28 Jun 2023 07:42:50 +0300 Subject: [PATCH 17/17] Meson: Give names to all compile tests See osdn #47851 Signed-off-by: Marko Lindqvist --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a1882b7ee8..6d16cef30d 100644 --- a/meson.build +++ b/meson.build @@ -368,7 +368,8 @@ else # Maybe it exist as a macro instead? if c_compiler.compiles(net_incl + ''' int main(void) { getaddrinfo(NULL, NULL, NULL, NULL); }''', - include_directories: include_directories(cross_inc_path)) + include_directories: include_directories(cross_inc_path), + name: 'getaddrinfo() as a macro') priv_conf_data.set('HAVE_GETADDRINFO', 1) pub_conf_data.set('FREECIV_IPV6_SUPPORT', 1) else @@ -521,6 +522,7 @@ endif if c_compiler.compiles('''#include int main(void) { struct ip_mreqn req; req.imr_ifindex = 0; return 0; }''', + name: 'ip_mreqn', include_directories: include_directories(cross_inc_path)) priv_conf_data.set('HAVE_IP_MREQN', 1) endif @@ -541,6 +543,7 @@ endif if c_compiler.compiles('''#include #include int main(void) { iconv_t cd; const char **c; iconv(cd, c, NULL, NULL); return 0; }''', + name: 'iconv const', include_directories: include_directories(cross_inc_path)) priv_conf_data.set('ICONV_CONST', 'const') else @@ -569,6 +572,7 @@ void fr(const char *form, ...) #define fr(_a_,_b_) printf(_a_,_b_) #endif int main(void) { size_t var = 0; fr("''' + format + '''", var); return 0; }''', + name: 'size_t printf as ' + format, include_directories: include_directories(cross_inc_path), args: ['-Werror', '-Wall']) priv_conf_data.set('SIZE_T_PRINTF', '"' + format + '"') @@ -649,6 +653,7 @@ if c_compiler.compiles(net_incl + ''' #include #include int main(void) { curl_mime *mime = curl_mime_init(NULL); }''', + name: 'curl mime API', include_directories: include_directories(cross_inc_path) ) priv_conf_data.set('HAVE_CURL_MIME_API', 1) -- 2.40.1