From 0b94d8ccba7ac636a2f9c7e2750740e212b61246 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 2 Aug 2021 13:57:52 -0700 Subject: build: Add get_subdir() to GeneratedList It needs this to match the behavior of CustomTarget and CustomTargetIndex, the later of which doesn't have a subdir attribute, just `get_subdir()` --- mesonbuild/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index d72aab8..59efa68 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1628,6 +1628,10 @@ class GeneratedList(HoldableObject): def get_extra_args(self) -> T.List[str]: return self.extra_args + def get_subdir(self) -> str: + return self.subdir + + class Executable(BuildTarget): known_kwargs = known_exe_kwargs -- cgit v1.1