update build script to support iar with CC=iccarm option

This commit is contained in:
hathach
2023-01-17 23:37:00 +07:00
parent 1891802f08
commit c86e628a4c
4 changed files with 13 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ if __name__ == '__main__':
for example in all_examples:
print(build_separator)
with Pool(processes=os.cpu_count()) as pool:
pool_args = list((map(lambda b, e=example: [e, b], all_boards)))
pool_args = list((map(lambda b, e=example, o='': [e, b, o], all_boards)))
result = pool.starmap(build_utils.build_example, pool_args)
# sum all element of same index (column sum)
result = list(map(sum, list(zip(*result))))