From f5f7a7bbb327dce7e82c830087f6fa6ef78a3a6e Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Thu, 1 Aug 2019 01:20:07 -0400 Subject: compilers/mixins/pgi: simplify pic logic --- mesonbuild/compilers/mixins/pgi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py index 0613e796e..ff2e9bf08 100644 --- a/mesonbuild/compilers/mixins/pgi.py +++ b/mesonbuild/compilers/mixins/pgi.py @@ -74,9 +74,9 @@ class PGICompiler(): def get_pic_args(self) -> typing.List[str]: # PGI -fPIC is Linux only. - if self.compiler_type.is_osx_compiler or self.compiler_type.is_windows_compiler: - return [] - return ['-fPIC'] + if self.compiler_type.is_linux_compiler(): + return ['-fPIC'] + return [] def openmp_flags(self) -> typing.List[str]: return ['-mp'] -- cgit v1.2.3