PGI -shared is for Linux only

pull/5733/head
Michael Hirsch, Ph.D 6 years ago
parent 148a3a83a6
commit 1e08d81476
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 9
      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]:

Loading…
Cancel
Save