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.
pull/4194/head
Mihails Strasuns 6 years ago committed by Jussi Pakkanen
parent 8f16d0f3c9
commit c352434a7a
  1. 3
      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)

Loading…
Cancel
Save