From e4f5fe1b356c0950ff51fd4f20da74b9cd03141b Mon Sep 17 00:00:00 2001
From: Ernestas Kulik <ernestas.kulik@gmail.com>
Date: Fri, 1 Dec 2017 12:51:49 +0200
Subject: 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.
---
 mesonbuild/compilers/vala.py | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'mesonbuild/compilers')

diff --git a/mesonbuild/compilers/vala.py b/mesonbuild/compilers/vala.py
index 9da9b81..b91da6d 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 []
-- 
cgit v1.1