python/{cmake,autotools}: build in verbose mode

Make sure all the gory details are visible in CI logs.
This commit is contained in:
Max Kellermann 2022-08-08 10:05:30 +02:00
parent 70eafba0d4
commit 740cc8ce49
3 changed files with 5 additions and 3 deletions

View File

@ -49,10 +49,11 @@ class AutotoolsProject(MakeProject):
'STRIP=' + toolchain.strip,
'--host=' + toolchain.arch,
'--prefix=' + toolchain.install_prefix,
'--enable-silent-rules',
'--disable-silent-rules',
] + self.configure_args
try:
print(configure)
subprocess.check_call(configure, cwd=build, env=toolchain.env)
except subprocess.CalledProcessError:
# dump config.log after a failed configure run

View File

@ -61,6 +61,7 @@ def configure(toolchain, src, build, args=()):
'-GNinja',
] + cross_args + args
print(configure)
subprocess.check_call(configure, env=toolchain.env, cwd=build)
class CmakeProject(Project):
@ -82,5 +83,5 @@ class CmakeProject(Project):
def _build(self, toolchain):
build = self.configure(toolchain)
subprocess.check_call(['ninja', 'install'],
subprocess.check_call(['ninja', '-v', 'install'],
cwd=build, env=toolchain.env)

View File

@ -112,5 +112,5 @@ class MesonProject(Project):
def _build(self, toolchain):
build = self.configure(toolchain)
subprocess.check_call(['ninja', 'install'],
subprocess.check_call(['ninja', '-v', 'install'],
cwd=build, env=toolchain.env)