summaryrefslogtreecommitdiff
path: root/mesonbuild/backend/xcodebackend.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/xcodebackend.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/xcodebackend.py')
-rw-r--r--mesonbuild/backend/xcodebackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index ac2126025..a4290d58d 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -629,7 +629,7 @@ class XCodeBackend(backends.Backend):
self.fileref_ids[k] = self.gen_id()
def generate_build_file_maps(self) -> None:
- for buildfile in self.interpreter.get_build_def_files():
+ for buildfile in self.build.def_files:
assert isinstance(buildfile, str)
self.buildfile_ids[buildfile] = self.gen_id()
self.fileref_ids[buildfile] = self.gen_id()
@@ -1025,7 +1025,7 @@ class XCodeBackend(backends.Backend):
custom_dict.add_item('sourceTree', 'SOURCE_ROOT')
objects_dict.add_item(self.custom_target_output_fileref[o], custom_dict)
- for buildfile in self.interpreter.get_build_def_files():
+ for buildfile in self.build.def_files:
basename = os.path.split(buildfile)[1]
buildfile_dict = PbxDict()
typestr = self.get_xcodetype(buildfile)