aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter/interpreter.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 9ca7742..81a88e5 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -1665,6 +1665,10 @@ class Interpreter(InterpreterBase, HoldableObject):
if progobj:
return progobj
+ if args[0] == 'meson':
+ # Override find_program('meson') to return what we were invoked with
+ return ExternalProgram('meson', self.environment.get_build_command(), silent=True)
+
fallback = None
wrap_mode = self.coredata.get_option(OptionKey('wrap_mode'))
if wrap_mode != WrapMode.nofallback and self.environment.wrap_resolver: