aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-08-01 01:20:07 -0400
committerDylan Baker <dylan@pnwbakers.com>2019-08-14 13:13:22 -0700
commitf5f7a7bbb327dce7e82c830087f6fa6ef78a3a6e (patch)
treea94c9482c1bff536c00afcb96caf0dbd4bf4f34b
parent571deb5f9ebaac3e795e4641751b79db2f45c882 (diff)
downloadmeson-f5f7a7bbb327dce7e82c830087f6fa6ef78a3a6e.zip
meson-f5f7a7bbb327dce7e82c830087f6fa6ef78a3a6e.tar.gz
meson-f5f7a7bbb327dce7e82c830087f6fa6ef78a3a6e.tar.bz2
compilers/mixins/pgi: simplify pic logic
-rw-r--r--mesonbuild/compilers/mixins/pgi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py
index 0613e79..ff2e9bf 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']