aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-02-11 10:52:25 -0500
committerEli Schwartz <eschwartz93@gmail.com>2023-06-15 14:45:24 -0400
commit5e2a47e768fefb44ac0e7d7b2d7e2d76807cd219 (patch)
tree2fd92d4da2176ba02748db818e7130d3d4eda8b8 /mesonbuild
parentf1a58a3ee648f1cab4f80ab3cea18f998e1a4012 (diff)
downloadmeson-5e2a47e768fefb44ac0e7d7b2d7e2d76807cd219.zip
meson-5e2a47e768fefb44ac0e7d7b2d7e2d76807cd219.tar.gz
meson-5e2a47e768fefb44ac0e7d7b2d7e2d76807cd219.tar.bz2
Interpreter: Using executable in run_command/configure_file is not a
bug Fixes: #11382
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 871c2f2..5908bec 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():