[pacman-dev] [PATCH 1/4] meson: drop checks for things we don't use
Dave Reisner
dreisner at archlinux.org
Sat Jun 29 16:58:25 UTC 2019
This was ported over from the AC_CHECK_{FUNCS,HEADERS} lists in
configure.ac, but I never actually checked if the resulting CPP defines
are used. Turns out, lots of symbols, not a lot of define usage.
---
meson.build | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/meson.build b/meson.build
index 91f05031..c2ed707a 100644
--- a/meson.build
+++ b/meson.build
@@ -163,38 +163,13 @@ foreach header : [
endforeach
foreach sym : [
- 'dup2',
- 'fork',
- 'getcwd',
'getmntent',
'getmntinfo',
- 'gettimeofday',
- 'memmove',
- 'memset',
- 'mkdir',
- 'realpath',
- 'regcomp',
- 'rmdir',
- 'setenv',
- 'setlocale',
- 'strcasecmp',
- 'strchr',
- 'strcspn',
- 'strdup',
- 'strerror',
'strndup',
'strnlen',
- 'strnlen',
- 'strrchr',
- 'strsep',
'strsep',
- 'strstr',
- 'strtol',
'swprintf',
'tcflush',
- 'tcflush',
- 'uname',
- 'wcwidth',
]
have = cc.has_function(sym, args : '-D_GNU_SOURCE')
conf.set10('HAVE_' + sym.to_upper(), have)
--
2.22.0
More information about the pacman-dev
mailing list