aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2018-12-05 17:53:35 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-05 22:18:53 +0200
commit4db1b3a09f8e1f9faf7747beca2bc77ae0e5a6a5 (patch)
treea973d78bcf247aecfc2e4b3e1ed862a1bdb2691c
parent46f3b8f75354af8e87ee267a94e7ae4602789e53 (diff)
downloadmeson-4db1b3a09f8e1f9faf7747beca2bc77ae0e5a6a5.zip
meson-4db1b3a09f8e1f9faf7747beca2bc77ae0e5a6a5.tar.gz
meson-4db1b3a09f8e1f9faf7747beca2bc77ae0e5a6a5.tar.bz2
modules/python: Do not override link_args with None largs
None is not iterable so it would trigger a TypeError later when link_args are passed on to CompilerArgs.extend_direct().
-rw-r--r--mesonbuild/modules/python.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 3b2bf07..9cfbd6f 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -151,8 +151,8 @@ class PythonDependency(ExternalDependency):
largs = self.clib_compiler.find_library(libname, environment, libdirs)
self.is_found = largs is not None
-
- self.link_args = largs
+ if self.is_found:
+ self.link_args = largs
inc_paths = mesonlib.OrderedSet([
self.variables.get('INCLUDEPY'),