summaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-10-04 14:18:24 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-10-16 08:51:11 -0700
commit3979531f160f32453365781200302066bc2f40f9 (patch)
tree31d01430a36bba9cc56626fd156578060e4fbe32 /mesonbuild/backend/backends.py
parent94f925404b9a1edaf98c46be0c22e04231c5ac77 (diff)
downloadmeson-3979531f160f32453365781200302066bc2f40f9.tar.gz
build, backend: store build_def_files in Build
The interpreter's build_def_files are the only remaining piece of interpreter state used by the backend. Compute it once and store it in build, using a property to ensure that it's initialized and accessed correctly. This also removes one of the cases in which introspection uses the interpreter object. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 31082ddc6..28a1ee359 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -1303,7 +1303,7 @@ class Backend:
'''List of all files whose alteration means that the build
definition needs to be regenerated.'''
deps = OrderedSet([str(Path(self.build_to_src) / df)
- for df in self.interpreter.get_build_def_files()])
+ for df in self.build.def_files])
if self.environment.is_cross_build():
deps.update(self.environment.coredata.cross_files)
deps.update(self.environment.coredata.config_files)