summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/vala.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-06-05 17:54:45 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-06-05 19:28:46 +0530
commit91b43960796bf6b9ecc23f39d790b40b3647b759 (patch)
tree90455fc3d9c65a7cb296816aac1101a94dc1c16e /mesonbuild/compilers/vala.py
parent39da01cc3ce1915afe0baa3435a35dd89dc68f53 (diff)
downloadmeson-nirbheek/find_library_fixes.tar.gz
find_library: Add a cache for library searchingnirbheek/find_library_fixes
Otherwise we can end up searching for the same library tens of times, because pkg-config does not de-duplicate -lfoo args before returning them. We use -Wl,--start-group/end-group, so we do not need to worry about ordering issues in static libraries.
Diffstat (limited to 'mesonbuild/compilers/vala.py')
-rw-r--r--mesonbuild/compilers/vala.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/vala.py b/mesonbuild/compilers/vala.py
index 6194d1aed..e89bc8db4 100644
--- a/mesonbuild/compilers/vala.py
+++ b/mesonbuild/compilers/vala.py
@@ -93,7 +93,7 @@ class ValaCompiler(Compiler):
if os.path.isfile(vapi):
return [vapi]
mlog.debug('Searched {!r} and {!r} wasn\'t found'.format(extra_dirs, libname))
- return None
+ return []
def thread_flags(self, env):
return []