Merge branch '1.8.x'

This commit is contained in:
Alexey Sokolov
2020-12-25 16:19:34 +00:00

View File

@@ -80,15 +80,16 @@ with tempfile.TemporaryDirectory() as cmdir:
with tempfile.TemporaryDirectory() as build:
command = ['cmake', cmdir]
if args.verbose > 1:
cmd.append('--debug-output')
command.append('--debug-output')
if args.verbose > 2:
cmd.append('--trace')
command.append('--trace')
if args.verbose > 0:
print(command)
subprocess.check_call(command, cwd=build)
subprocess.check_call(['cmake', '--build', '.'], cwd=build)
for so in glob.iglob(os.path.join(build, '*.so')):
print('Writing {}'.format(os.path.join(os.getcwd(), os.path.basename(so))))
try:
os.remove(os.path.basename(so))
except OSError: