no special shared lib args for PGI

pull/5733/head
Michael Hirsch, Ph.D 6 years ago
parent 1e08d81476
commit 7eebb6749a
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 14
      mesonbuild/compilers/mixins/clike.py
  2. 3
      mesonbuild/compilers/mixins/pgi.py

@ -209,25 +209,25 @@ class CLikeCompiler:
'''
return self.get_compiler_dirs(env, 'programs')
def get_pic_args(self):
def get_pic_args(self) -> typing.List[str]:
return ['-fPIC']
def name_string(self):
def name_string(self) -> str:
return ' '.join(self.exelist)
def get_pch_use_args(self, pch_dir, header):
def get_pch_use_args(self, pch_dir: str, header: str) -> typing.List[str]:
return ['-include', os.path.basename(header)]
def get_pch_name(self, header_name):
def get_pch_name(self, header_name: str) -> str:
return os.path.basename(header_name) + '.' + self.get_pch_suffix()
def get_linker_search_args(self, dirname):
def get_linker_search_args(self, dirname: str) -> typing.List[str]:
return ['-L' + dirname]
def get_default_include_dirs(self):
return []
def gen_export_dynamic_link_args(self, env):
def gen_export_dynamic_link_args(self, env) -> typing.List[str]:
m = env.machines[self.for_machine]
if m.is_windows() or m.is_cygwin():
return ['-Wl,--export-all-symbols']
@ -236,7 +236,7 @@ class CLikeCompiler:
else:
return ['-Wl,-export-dynamic']
def gen_import_library_args(self, implibname):
def gen_import_library_args(self, implibname: str) -> typing.List[str]:
"""
The name of the outputted import library

@ -61,6 +61,9 @@ class PGICompiler():
def get_no_warn_args(self) -> typing.List[str]:
return ['-silent']
def gen_import_library_args(self, implibname: str) -> typing.List[str]:
return []
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:

Loading…
Cancel
Save