Commit d32ed194 authored by Max Kellermann's avatar Max Kellermann

python/build/autotools.py: dump config.log on configure error

For better error logs on CI.
parent 70d0fbd7
......@@ -52,7 +52,18 @@ class AutotoolsProject(MakeProject):
'--enable-silent-rules',
] + self.configure_args
subprocess.check_call(configure, cwd=build, env=toolchain.env)
try:
subprocess.check_call(configure, cwd=build, env=toolchain.env)
except subprocess.CalledProcessError:
# dump config.log after a failed configure run
try:
with open(os.path.join(build, 'config.log')) as f:
sys.stdout.write(f.read())
except:
pass
# re-raise the exception
raise
return build
def _build(self, toolchain):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment