Skip to content
Snippets Groups Projects

Support new Gaudi CMake

Merged Marco Clemencic requested to merge support-new-gaudi-cmake into master
Files
3
@@ -515,7 +515,7 @@ string(REPLACE "$${NIGHTLY_BUILD_ROOT}" "$${CMAKE_CURRENT_LIST_DIR}"
collect_retcode = 0
if str(proj.build_tool) == 'CMake':
loglines = result.stdout.splitlines(True)
starts = [(line.split()[2], idx)
starts = [(line.split()[-2], idx)
for idx, line in enumerate(loglines)
if line.startswith('#### CMake ')]
end = len(loglines)
@@ -523,11 +523,8 @@ string(REPLACE "$${NIGHTLY_BUILD_ROOT}" "$${CMAKE_CURRENT_LIST_DIR}"
for key, start in starts[-1::-1]:
regions[key] = (start, end)
end = start
with open(join(summary_dir, 'build.log'), 'w') as f:
start, end = regions.get('configure', (0, 0))
f.writelines(loglines[start:end])
collect_retcode = \
CBLScript().run(['--debug', '--append',
CBLScript().run(['--debug',
'--exclude', '.*unsafe-install.*',
'--exclude', '.*python.zip.*',
'--exclude', '.*precompile-.*',
Loading