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.
This commit is contained in:
Ernestas Kulik 2017-12-01 12:51:49 +02:00 committed by Jussi Pakkanen
parent d812a0c90c
commit e4f5fe1b35
1 changed files with 6 additions and 0 deletions

View File

@ -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 []