diff options
| author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-08-01 01:20:07 -0400 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2019-08-14 13:13:22 -0700 |
| commit | f5f7a7bbb327dce7e82c830087f6fa6ef78a3a6e (patch) | |
| tree | a94c9482c1bff536c00afcb96caf0dbd4bf4f34b /mesonbuild/compilers | |
| parent | 571deb5f9ebaac3e795e4641751b79db2f45c882 (diff) | |
| download | meson-f5f7a7bbb327dce7e82c830087f6fa6ef78a3a6e.tar.gz | |
compilers/mixins/pgi: simplify pic logic
Diffstat (limited to 'mesonbuild/compilers')
| -rw-r--r-- | mesonbuild/compilers/mixins/pgi.py | 6 |
1 files 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'] |
