Interpreter: Using executable in run_command/configure_file is not a

bug

Fixes: #11382
pull/11604/merge
Xavier Claessens 2 years ago committed by Eli Schwartz
parent f1a58a3ee6
commit 5e2a47e768
  1. 2
      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():

Loading…
Cancel
Save