add getter for id so linker can be identified

pull/13681/head
Jason Scott 1 month ago
parent 143f848a43
commit 02960bc449
  1. 3
      mesonbuild/linkers/linkers.py

@ -26,6 +26,9 @@ class StaticLinker:
def __init__(self, exelist: T.List[str]): def __init__(self, exelist: T.List[str]):
self.exelist = exelist self.exelist = exelist
def get_id(self) -> str:
return self.id
def compiler_args(self, args: T.Optional[T.Iterable[str]] = None) -> CompilerArgs: def compiler_args(self, args: T.Optional[T.Iterable[str]] = None) -> CompilerArgs:
return CompilerArgs(self, args) return CompilerArgs(self, args)

Loading…
Cancel
Save