Skip to content
Snippets Groups Projects
Unverified Commit 489dc207 authored by Robin De Schepper's avatar Robin De Schepper Committed by GitHub
Browse files

`make VERBOSE=1` in verbose mode (#1715)

parent d665026f
No related branches found
No related tags found
No related merge requests found
...@@ -143,13 +143,16 @@ with TemporaryDirectory() as tmp: ...@@ -143,13 +143,16 @@ with TemporaryDirectory() as tmp:
fd.write(cmake) fd.write(cmake)
shutil.copy2(f'@ARB_INSTALL_DATADIR@/BuildModules.cmake', tmp) shutil.copy2(f'@ARB_INSTALL_DATADIR@/BuildModules.cmake', tmp)
shutil.copy2(f'@ARB_INSTALL_DATADIR@/generate_catalogue', tmp) shutil.copy2(f'@ARB_INSTALL_DATADIR@/generate_catalogue', tmp)
cmake_cmd = 'cmake ..'
make_cmd = 'make'
if verbose: if verbose:
out, err = (None, None) out, err = (None, None)
make_cmd += ' VERBOSE=1'
else: else:
out, err = (sp.PIPE, sp.PIPE) out, err = (sp.PIPE, sp.PIPE)
try: try:
sp.run('cmake ..', shell=True, check=True, stdout=out, stderr=err) sp.run(cmake_cmd, shell=True, check=True, stdout=out, stderr=err)
sp.run('make', shell=True, check=True, stdout=out, stderr=err) sp.run(make_cmd, shell=True, check=True, stdout=out, stderr=err)
shutil.copy2(f'{name}-catalogue.so', pwd) shutil.copy2(f'{name}-catalogue.so', pwd)
except sp.CalledProcessError as e: except sp.CalledProcessError as e:
import sys, traceback as tb import sys, traceback as tb
...@@ -172,6 +175,6 @@ with TemporaryDirectory() as tmp: ...@@ -172,6 +175,6 @@ with TemporaryDirectory() as tmp:
sys.stdout.flush() sys.stdout.flush()
sys.stderr.flush() sys.stderr.flush()
exit(e.returncode) exit(e.returncode)
if not quiet: if not quiet:
print(f'Catalogue has been built and copied to {pwd}/{name}-catalogue.so') print(f'Catalogue has been built and copied to {pwd}/{name}-catalogue.so')
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