summaryrefslogtreecommitdiff
path: root/mesonbuild/programs.py
diff options
context:
space:
mode:
authorXavier Claessens <xclaessens@netflix.com>2025-10-10 09:14:05 -0400
committerXavier Claessens <xclaesse@gmail.com>2025-10-11 18:32:48 -0400
commit019d9600d63d50d8f933333ffd5b6dbe253f0912 (patch)
treee261b1b2e560276c27ddfa33966b1eac938b8569 /mesonbuild/programs.py
parentf27ba93319ca9c3ae677952941717e072126228b (diff)
downloadmeson-019d9600d63d50d8f933333ffd5b6dbe253f0912.tar.gz
Avoid running overriden program to get its version
The parent `__init__` was setting cached_version back to None. This fixes a regression caused by https://github.com/mesonbuild/meson/pull/8885.
Diffstat (limited to 'mesonbuild/programs.py')
-rw-r--r--mesonbuild/programs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py
index d01440cce..0abf09720 100644
--- a/mesonbuild/programs.py
+++ b/mesonbuild/programs.py
@@ -364,9 +364,9 @@ class OverrideProgram(ExternalProgram):
def __init__(self, name: str, version: str, command: T.Optional[T.List[str]] = None,
silent: bool = False, search_dirs: T.Optional[T.List[T.Optional[str]]] = None,
exclude_paths: T.Optional[T.List[str]] = None):
- self.cached_version = version
super().__init__(name, command=command, silent=silent,
search_dirs=search_dirs, exclude_paths=exclude_paths)
+ self.cached_version = version
def find_external_program(env: 'Environment', for_machine: MachineChoice, name: str,
display_name: str, default_names: T.List[str],