diff options
author | Ernestas Kulik <ernestas.kulik@gmail.com> | 2017-12-01 12:51:49 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-03 00:13:07 +0200 |
commit | e4f5fe1b356c0950ff51fd4f20da74b9cd03141b (patch) | |
tree | 9983faf40fcad1490f0bc4a5ce1f96bcea811ccd | |
parent | d812a0c90c722b2f6183f283fa42eb26732b5762 (diff) | |
download | meson-e4f5fe1b356c0950ff51fd4f20da74b9cd03141b.zip meson-e4f5fe1b356c0950ff51fd4f20da74b9cd03141b.tar.gz meson-e4f5fe1b356c0950ff51fd4f20da74b9cd03141b.tar.bz2 |
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.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 [] |