diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index 12bb73acf..737a01c2f 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -101,7 +101,7 @@ class ModuleState: 'depends': depends, } # TODO: Use interpreter internal API, but we need to go through @typed_kwargs - self._interpreter.func_test(self.node, args, kwargs) + self._interpreter.func_test(self.current_node, args, kwargs) class ModuleObject(HoldableObject):