Interpreter: Using executable in run_command/configure_file is not a

bug

Fixes: #11382
This commit is contained in:
Xavier Claessens 2023-02-11 10:52:25 -05:00 committed by Eli Schwartz
parent f1a58a3ee6
commit 5e2a47e768
1 changed files with 1 additions and 1 deletions

View File

@ -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():