aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-07-03 12:38:15 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-07-19 18:31:37 -0400
commitcfc3960956f98aff74b118ce3de89a40ef3496c1 (patch)
tree47340c7dc289e979fd6ba743ceb649fbe9c3e222 /mesonbuild/linkers
parent621264e1d4f1a8623c6f82b774c8c9f099e98b62 (diff)
downloadmeson-cfc3960956f98aff74b118ce3de89a40ef3496c1.zip
meson-cfc3960956f98aff74b118ce3de89a40ef3496c1.tar.gz
meson-cfc3960956f98aff74b118ce3de89a40ef3496c1.tar.bz2
mypy: add more mixin base classes
These don't have new errors or old ignored ones, but add them anyway so we can generally validate their sanity.
Diffstat (limited to 'mesonbuild/linkers')
-rw-r--r--mesonbuild/linkers/linkers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
index 5e76a92..8948347 100644
--- a/mesonbuild/linkers/linkers.py
+++ b/mesonbuild/linkers/linkers.py
@@ -316,7 +316,7 @@ else:
StaticLinkerBase = DynamicLinkerBase = object
-class VisualStudioLikeLinker:
+class VisualStudioLikeLinker(StaticLinkerBase):
always_args = ['/NOLOGO']
def __init__(self, machine: str):
@@ -559,7 +559,7 @@ def evaluate_rpath(p: str, build_dir: str, from_dir: str) -> str:
return os.path.relpath(os.path.join(build_dir, p), os.path.join(build_dir, from_dir))
-class PosixDynamicLinkerMixin:
+class PosixDynamicLinkerMixin(DynamicLinkerBase):
"""Mixin class for POSIX-ish linkers.
@@ -578,7 +578,7 @@ class PosixDynamicLinkerMixin:
return ['-L' + dirname]
-class GnuLikeDynamicLinkerMixin:
+class GnuLikeDynamicLinkerMixin(DynamicLinkerBase):
"""Mixin class for dynamic linkers that provides gnu-like interface.