diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-06-18 13:57:43 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-07-28 01:33:46 -0400 |
commit | f95a8f8282f5723379216f810fa614e01ef47f03 (patch) | |
tree | c1000e3e6e5a1d2a3981ef48fc1c40eee2dacd8f /mesonbuild/dependencies/misc.py | |
parent | 276fe408affa75749aa7ce024738326d659991f6 (diff) | |
download | meson-f95a8f8282f5723379216f810fa614e01ef47f03.zip meson-f95a8f8282f5723379216f810fa614e01ef47f03.tar.gz meson-f95a8f8282f5723379216f810fa614e01ef47f03.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/dependencies/misc.py')
-rw-r--r-- | mesonbuild/dependencies/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |