aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-09-19 14:46:26 -0400
committerMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-10-22 23:38:39 -0400
commit4857940e897ad2628cbd182b0632867b43cb4b25 (patch)
treefa6293e93b027a1550dd7b0a8abf1761b7d1f88b /mesonbuild/interpreter.py
parent765a5e98358672f8c433145ee1642dabb75c7f7c (diff)
downloadmeson-4857940e897ad2628cbd182b0632867b43cb4b25.zip
meson-4857940e897ad2628cbd182b0632867b43cb4b25.tar.gz
meson-4857940e897ad2628cbd182b0632867b43cb4b25.tar.bz2
raise exception when a non-required module not found and subsequently used
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index d4f02c0..cd38d40 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -2388,6 +2388,8 @@ external dependencies (including libraries) must go to "dependencies".''')
msg = 'Program {!r} was overridden with the compiled executable {!r}'\
' and therefore cannot be used during configuration'
raise InterpreterException(msg.format(progname, cmd.description()))
+ if not cmd.found():
+ raise InterpreterException('command {!r} not found or not executable'.format(cmd))
elif isinstance(cmd, CompilerHolder):
cmd = cmd.compiler.get_exelist()[0]
prog = ExternalProgram(cmd, silent=True)