From c352434a7a86ad8c3f642a8072ae50c1506f6487 Mon Sep 17 00:00:00 2001 From: Mihails Strasuns Date: Wed, 12 Sep 2018 11:33:42 +0300 Subject: Implement thread linker args for D compilers D compilers are configured to have highest priority when chosing linker for targets mixing C/C++/D code and before this change meson would fail to configure gtest target that uses D library as a dependency. --- mesonbuild/compilers/d.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index 938c9ed..e9ceafb 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -409,6 +409,9 @@ class DCompiler(Compiler): def get_crt_link_args(self, crt_val, buildtype): return [] + def thread_link_flags(self, env): + return ['-pthread'] + class GnuDCompiler(DCompiler): def __init__(self, exelist, version, is_cross, arch, **kwargs): DCompiler.__init__(self, exelist, version, is_cross, arch, **kwargs) -- cgit v1.1