From 396f20fd913ba30523ee833abcf0cdfae2dfd30d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 26 Jan 2024 13:59:30 -0800 Subject: [PATCH] interpreter: only calculate build_filename if we're actually going to use it --- mesonbuild/interpreter/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index f7336e360..418042782 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -313,8 +313,8 @@ class Interpreter(InterpreterBase, HoldableObject): # exist we don't want to add a dependency on it, it's autogenerated # from the actual build files, and is just for reference. self.build_def_files: mesonlib.OrderedSet[str] = mesonlib.OrderedSet() - build_filename = os.path.join(self.subdir, environment.build_filename) if not is_translated: + build_filename = os.path.join(self.subdir, environment.build_filename) self.build_def_files.add(build_filename) self.parse_project() self._redetect_machines()