summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-02-03 12:23:51 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-10-03 08:53:12 -0700
commit34bc81a49f098d2f113e198a5ec75236cfd3cb21 (patch)
treea39a2980501ac7744d5a0ee8be413edfe1230223
parenta20aca34bbd913056998a64c17ab5bf8523a4a55 (diff)
downloadmeson-34bc81a49f098d2f113e198a5ec75236cfd3cb21.tar.gz
build: type BuildTarget.link_depends
-rw-r--r--mesonbuild/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 677027201..b70866fa4 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -723,7 +723,7 @@ class BuildTarget(Target):
self.link_targets: T.List[LibTypes] = []
self.link_whole_targets: T.List[T.Union[StaticLibrary, CustomTarget, CustomTargetIndex]] = []
self.depend_files: T.List[File] = []
- self.link_depends = []
+ self.link_depends: T.List[T.Union[File, CustomTarget, CustomTargetIndex, BuildTarget]] = []
self.added_deps = set()
self.name_prefix_set = False
self.name_suffix_set = False
@@ -1027,7 +1027,7 @@ class BuildTarget(Target):
langs = ', '.join(self.compilers.keys())
raise InvalidArguments(f'Cannot mix those languages into a target: {langs}')
- def process_link_depends(self, sources):
+ def process_link_depends(self, sources: T.Iterable[T.Union[str, File, CustomTarget, CustomTargetIndex, BuildTarget]]) -> None:
"""Process the link_depends keyword argument.
This is designed to handle strings, Files, and the output of Custom