From b9af8f8b6b394903d64e4886712b38a056cd876f Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Thu, 5 Sep 2019 11:58:10 -0400 Subject: [PATCH] PGI cannot accept -pthread --- mesonbuild/compilers/mixins/pgi.py | 4 ++++ 1 file changed, 4 insertions(+) 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 []