From 5e2a47e768fefb44ac0e7d7b2d7e2d76807cd219 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 11 Feb 2023 10:52:25 -0500 Subject: [PATCH] Interpreter: Using executable in run_command/configure_file is not a bug Fixes: #11382 --- 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 871c2f2fa..5908becd2 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -804,7 +804,7 @@ class Interpreter(InterpreterBase, HoldableObject): progname = name break else: - raise MesonBugException('cmd was a built executable but not found in overrides table') + raise InterpreterException(f'Program {cmd.description()!r} is a compiled executable and therefore cannot be used during configuration') raise InterpreterException(overridden_msg.format(progname, cmd.description())) if isinstance(cmd, ExternalProgram): if not cmd.found():