From aa5f38185495100fe9d53b6358d8d7cfa8a6388d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 1 Oct 2025 13:27:15 -0700 Subject: build: add `subdir` property to `CustomTargetIndex` Which it needs in some contexts to be polymorphic with CustomTarget --- mesonbuild/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index ba989676f..0b6400732 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -3258,6 +3258,10 @@ class CustomTargetIndex(CustomTargetBase, HoldableObject): def depend_files(self) -> T.List[File]: return self.target.depend_files + @property + def subdir(self) -> str: + return self.target.subdir + def __repr__(self): return ''.format(self.target, self.output) -- cgit v1.2.3