aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-17 00:13:29 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-17 12:56:01 +0200
commit2b842de3414215a4b77ff6d63f5806b9123cb674 (patch)
treef45547e9793a3849c3fe299e8da53161a1808138
parentb389f430609a4956d23beddcdaa26b3fea06bc23 (diff)
downloadmeson-2b842de3414215a4b77ff6d63f5806b9123cb674.zip
meson-2b842de3414215a4b77ff6d63f5806b9123cb674.tar.gz
meson-2b842de3414215a4b77ff6d63f5806b9123cb674.tar.bz2
compilers: Ignore -pthread in link flags with MSVC
Sometimes .pc files add -pthread in Libs: instead of -lpthread, so ignore that too when building with MSVC.
-rw-r--r--mesonbuild/compilers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index dcb4b69..e8671da 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -1953,6 +1953,9 @@ class VisualStudioCCompiler(CCompiler):
continue
else:
i = name + '.lib'
+ # -pthread in link flags is only used on Linux
+ elif i == '-pthread':
+ continue
result.append(i)
return result