aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-28 20:54:21 -0400
committerMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-30 15:29:50 -0400
commit1e08d81476ff1edb1316b5491c445aaed941e5f3 (patch)
treecff22b4c09894be1ed80e34d6aba150ed349736b /mesonbuild/compilers/mixins
parent148a3a83a647a21cc102cb01d82cbeeb0940adc8 (diff)
downloadmeson-1e08d81476ff1edb1316b5491c445aaed941e5f3.zip
meson-1e08d81476ff1edb1316b5491c445aaed941e5f3.tar.gz
meson-1e08d81476ff1edb1316b5491c445aaed941e5f3.tar.bz2
PGI -shared is for Linux only
Diffstat (limited to 'mesonbuild/compilers/mixins')
-rw-r--r--mesonbuild/compilers/mixins/pgi.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py
index ad94271..3b0451a 100644
--- a/mesonbuild/compilers/mixins/pgi.py
+++ b/mesonbuild/compilers/mixins/pgi.py
@@ -61,9 +61,16 @@ class PGICompiler():
def get_no_warn_args(self) -> typing.List[str]:
return ['-silent']
+ def get_std_shared_lib_link_args(self) -> typing.List[str]:
+ # PGI -shared is Linux only.
+ if self.compiler_type.is_osx_compiler or self.compiler_type.is_windows_compiler:
+ return []
+ return ['-shared']
+
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 [] # PGI -fPIC is Linux only.
+ return []
return ['-fPIC']
def openmp_flags(self) -> typing.List[str]: