diff options
| author | hathach <[email protected]> | 2024-12-11 15:10:12 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-12-11 15:10:12 +0700 |
| commit | 29fa07d2ad774181877a311e8c0770195a020b3b (patch) | |
| tree | 602d48ca2dff1b7131d828f59e0fe0bc9e488517 /tools | |
| parent | df91c12ab29a117edee504b876dfaf78a5615da9 (diff) | |
| parent | cb22301f91f0465a5578be35d9be284657ddd31d (diff) | |
Merge branch 'master' into fork/HiFiPhile/rt1170
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/build.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/build.py b/tools/build.py index 3a9239bc2..bbc98e9c4 100755 --- a/tools/build.py +++ b/tools/build.py @@ -109,7 +109,14 @@ def cmake_board(board, toolchain, build_flags_on): rcmd = run_cmd(f'cmake examples -B {build_dir} -G "Ninja" -DBOARD={board} -DCMAKE_BUILD_TYPE=MinSizeRel ' f'-DTOOLCHAIN={toolchain} {build_flags}') if rcmd.returncode == 0: - rcmd = run_cmd(f"cmake --build {build_dir}") + cmd = f"cmake --build {build_dir}" + # Due to IAR capability, limit parallel build to 4 (medium+) or 6 (large) docker + if toolchain == 'iar' and os.getenv('CIRCLECI'): + if 'large' in os.getenv('CIRCLE_JOB'): + cmd += ' --parallel 6' + else: + cmd += ' --parallel 4' + rcmd = run_cmd(cmd) ret[0 if rcmd.returncode == 0 else 1] += 1 example = 'all' |
