From 9d64143a4f7cf36c052c679a1411f60ccff2fa7e Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 10 Oct 2020 23:15:31 -0400 Subject: summary: Add from which subproject each subproject have been called --- mesonbuild/interpreter/interpreterobjects.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mesonbuild/interpreter/interpreterobjects.py') diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py index fa9171485..c1ce0dadc 100644 --- a/mesonbuild/interpreter/interpreterobjects.py +++ b/mesonbuild/interpreter/interpreterobjects.py @@ -731,7 +731,8 @@ class SubprojectHolder(MesonInterpreterObject): subdir: str, warnings: int = 0, disabled_feature: T.Optional[str] = None, - exception: T.Optional[Exception] = None) -> None: + exception: T.Optional[Exception] = None, + callstack: T.Optional[T.List[str]] = None) -> None: super().__init__() self.held_object = subinterpreter self.warnings = warnings @@ -739,6 +740,7 @@ class SubprojectHolder(MesonInterpreterObject): self.exception = exception self.subdir = PurePath(subdir).as_posix() self.cm_interpreter: T.Optional[CMakeInterpreter] = None + self.callstack = callstack self.methods.update({'get_variable': self.get_variable_method, 'found': self.found_method, }) -- cgit v1.2.3