From c8d380e4ef11cd1a72c785418f41dd420fbf6d1b Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Sun, 1 Sep 2019 15:19:38 -0400 Subject: PGI: use ar link wrapper on Windows --- mesonbuild/compilers/mixins/pgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py index c13c7bc..a9e30b6 100644 --- a/mesonbuild/compilers/mixins/pgi.py +++ b/mesonbuild/compilers/mixins/pgi.py @@ -56,7 +56,7 @@ class PGICompiler: def get_pic_args(self) -> typing.List[str]: # PGI -fPIC is Linux only. - if self.compiler_type.is_linux_compiler(): + if self.compiler_type.is_standard_compiler: return ['-fPIC'] return [] -- cgit v1.1 From b9af8f8b6b394903d64e4886712b38a056cd876f Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Thu, 5 Sep 2019 11:58:10 -0400 Subject: PGI cannot accept -pthread --- mesonbuild/compilers/mixins/pgi.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py index a9e30b6..38c7ffd 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 [] -- cgit v1.1