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 d32ed194e8
commit 10aec174d5
3 changed files with 5 additions and 3 deletions

View File

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

View File

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

View File

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