summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestas.kulik@gmail.com>2017-12-01 12:51:49 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-03 00:13:07 +0200
commite4f5fe1b356c0950ff51fd4f20da74b9cd03141b (patch)
tree9983faf40fcad1490f0bc4a5ce1f96bcea811ccd
parentd812a0c90c722b2f6183f283fa42eb26732b5762 (diff)
downloadmeson-e4f5fe1b356c0950ff51fd4f20da74b9cd03141b.tar.gz
vala: add stubs for thread flag methods
As the Vala compiler does not define thread_flags() and thread_link_flags(), depending on threads in any capacity will cause Meson to fail. Fixes #2720.
-rw-r--r--mesonbuild/compilers/vala.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/vala.py b/mesonbuild/compilers/vala.py
index 9da9b81e6..b91da6d13 100644
--- a/mesonbuild/compilers/vala.py
+++ b/mesonbuild/compilers/vala.py
@@ -94,3 +94,9 @@ class ValaCompiler(Compiler):
return [vapi]
mlog.debug('Searched {!r} and {!r} wasn\'t found'.format(extra_dirs, libname))
return None
+
+ def thread_flags(self):
+ return []
+
+ def thread_link_flags(self):
+ return []