compilers: move split_shlib_to_parts to the base compiler
Only the GnuLikeCompiler overrides this, and it's implemented multiple places
This commit is contained in:
parent
fe97977b00
commit
1513aa437d
|
@ -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…
Reference in New Issue