diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py index a9e30b614..38c7ffdaf 100644 --- a/mesonbuild/compilers/mixins/pgi.py +++ b/mesonbuild/compilers/mixins/pgi.py @@ -97,3 +97,7 @@ class PGICompiler: '-I{}'.format(hdr.parent)] else: return [] + + def thread_flags(self, env): + # PGI cannot accept -pthread, it's already threaded + return []