From f95a8f8282f5723379216f810fa614e01ef47f03 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Fri, 18 Jun 2021 13:57:43 -0400 Subject: intl: fix incorrect detection of header Although find_library returns the library as a list of args, has_header returns a tuple(is_found, is_cached) which is non-empty and thus always true. Which is confusing... Check whether it actually got found. --- mesonbuild/dependencies/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild') diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 9aa26c2..7ae0881 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -457,7 +457,7 @@ class IntlSystemDependency(SystemDependency): h = self.clib_compiler.has_header('libintl.h', '', env) self.link_args = self.clib_compiler.find_library('intl', env, []) - if h and self.link_args: + if h[0] and self.link_args: self.is_found = True -- cgit v1.1