summaryrefslogtreecommitdiff
path: root/mesonbuild/msetup.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/msetup.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/msetup.py')
-rw-r--r--mesonbuild/msetup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py
index f1fa777d1..0e579f0d9 100644
--- a/mesonbuild/msetup.py
+++ b/mesonbuild/msetup.py
@@ -340,6 +340,7 @@ class MesonApp:
b.devenv.append(intr.backend.get_devenv())
for mod in intr.modules.values():
mod.postconf_hook(b)
+ b.def_files = intr.get_build_def_files()
def run_genvslite_setup(options: CMDOptions) -> None:
# With --genvslite, we essentially want to invoke multiple 'setup' iterations. I.e. -