compilers: move split_shlib_to_parts to the base compiler

Only the GnuLikeCompiler overrides this, and it's implemented multiple
places
pull/7795/head
Dylan Baker 4 years ago
parent fe97977b00
commit 1513aa437d
  1. 3
      mesonbuild/compilers/compilers.py
  2. 3
      mesonbuild/compilers/cs.py
  3. 3
      mesonbuild/compilers/java.py
  4. 3
      mesonbuild/compilers/mixins/clike.py

@ -1059,6 +1059,9 @@ class Compiler(metaclass=abc.ABCMeta):
is good enough here.
"""
def split_shlib_to_parts(self, fname: str) -> T.Tuple[T.Optional[str], str]:
return None, fname
def get_args_from_envvars(lang: str,
for_machine: MachineChoice,

@ -61,9 +61,6 @@ class CsCompiler(BasicLinkerIsCompilerMixin, Compiler):
def get_werror_args(self):
return ['-warnaserror']
def split_shlib_to_parts(self, fname):
return None, fname
def get_dependency_gen_args(self, outtarget, outfile):
return []

@ -37,9 +37,6 @@ class JavaCompiler(BasicLinkerIsCompilerMixin, Compiler):
def get_werror_args(self):
return ['-Werror']
def split_shlib_to_parts(self, fname):
return None, fname
def get_dependency_gen_args(self, outtarget, outfile):
return []

@ -169,9 +169,6 @@ class CLikeCompiler(Compiler):
# Almost every compiler uses this for disabling warnings
return ['-w']
def split_shlib_to_parts(self, fname: str) -> T.Tuple[T.Optional[str], str]:
return None, fname
def depfile_for_object(self, objfile: str) -> str:
return objfile + '.' + self.get_depfile_suffix()

Loading…
Cancel
Save