aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihails Strasuns <mihails.strasuns@gmail.com>2018-09-12 11:33:42 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-09-16 20:31:04 +0300
commitc352434a7a86ad8c3f642a8072ae50c1506f6487 (patch)
treea2b0920aac43a201dd0fb5c7580ccc4f86560dfd
parent8f16d0f3c99666c36f37ef10df0b916e88c1afaa (diff)
downloadmeson-c352434a7a86ad8c3f642a8072ae50c1506f6487.zip
meson-c352434a7a86ad8c3f642a8072ae50c1506f6487.tar.gz
meson-c352434a7a86ad8c3f642a8072ae50c1506f6487.tar.bz2
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.
-rw-r--r--mesonbuild/compilers/d.py3
1 files changed, 3 insertions, 0 deletions
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)