From 2b842de3414215a4b77ff6d63f5806b9123cb674 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 17 Dec 2016 00:13:29 +0530 Subject: 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. --- mesonbuild/compilers.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/compilers.py') 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 -- cgit v1.1