aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorNorbert Nemec <Norbert@Nemec-online.de>2019-07-05 17:59:18 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-07-10 01:03:01 +0300
commit62c975659fe4a6ce5d56c665607d4f52ca31deda (patch)
treef021ed5fcd3f3ddad6644c6e760e16080e4079ae /mesonbuild
parent687bd313174564ac7928fc9a29d33ddccaa4c292 (diff)
downloadmeson-62c975659fe4a6ce5d56c665607d4f52ca31deda.zip
meson-62c975659fe4a6ce5d56c665607d4f52ca31deda.tar.gz
meson-62c975659fe4a6ce5d56c665607d4f52ca31deda.tar.bz2
diagnostics for missing DLLs on Windows in meson_exe.py
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/scripts/meson_exe.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/scripts/meson_exe.py b/mesonbuild/scripts/meson_exe.py
index 85dfe99..991fa3f 100644
--- a/mesonbuild/scripts/meson_exe.py
+++ b/mesonbuild/scripts/meson_exe.py
@@ -78,6 +78,11 @@ def run_exe(exe):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
+
+ if p.returncode == 3221225781:
+ # magic errorcode on Windows indicating a common problem that is otherwise hard to diagnose
+ raise FileNotFoundError('Missing DLLs on calling {!r}'.format(exe.name))
+
if exe.capture and p.returncode == 0:
with open(exe.capture, 'wb') as output:
output.write(stdout)