diff options
author | Mihails Strasuns <mihails.strasuns@gmail.com> | 2018-09-12 11:33:42 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-09-16 20:31:04 +0300 |
commit | c352434a7a86ad8c3f642a8072ae50c1506f6487 (patch) | |
tree | a2b0920aac43a201dd0fb5c7580ccc4f86560dfd /mesonbuild | |
parent | 8f16d0f3c99666c36f37ef10df0b916e88c1afaa (diff) | |
download | meson-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.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/compilers/d.py | 3 |
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) |