summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Scott <jpscott07@gmail.com>2024-10-18 12:50:31 -0400
committerJason Scott <jpscott07@gmail.com>2024-10-18 12:50:31 -0400
commit02960bc4493238886fbe0b3d09a2ba405d791246 (patch)
tree7ea87971bbdc3298f99989b41f965194eb559754
parent143f848a439a35dc2e4512c02aebc67cc134b7fc (diff)
downloadmeson-02960bc4493238886fbe0b3d09a2ba405d791246.tar.gz
add getter for id so linker can be identified
-rw-r--r--mesonbuild/linkers/linkers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
index d011e67b9..264a1bb24 100644
--- a/mesonbuild/linkers/linkers.py
+++ b/mesonbuild/linkers/linkers.py
@@ -26,6 +26,9 @@ class StaticLinker:
def __init__(self, exelist: T.List[str]):
self.exelist = exelist
+ def get_id(self) -> str:
+ return self.id
+
def compiler_args(self, args: T.Optional[T.Iterable[str]] = None) -> CompilerArgs:
return CompilerArgs(self, args)