coin: Call make with -j option when building examples

make and mingw32-make are not parallel by default, which can lead to
long build times. Make sure to call them with the -j option with the
amount of cores the VM has available.

Pick-to: 6.8 6.9 6.10
Task-number: QTBUG-139139
Change-Id: I654b91f117745af2db8aa250a08bfc441413b7b2
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexandru Croitor 2025-08-14 15:48:09 +02:00
parent 46a939a700
commit 20f441000a
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ instructions:
not_contains_value: "Mingw"
# Call make when host os is not Windows (Linux, macOS)
- type: ExecuteCommand
command: "{{.Env.CALL_MAKE_ENV_PREFIX}} make"
command: "{{.Env.CALL_MAKE_ENV_PREFIX}} make -j {{.NumCPU}}"
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
maxTimeInSeconds: 6000
maxTimeBetweenOutput: 1200
@ -38,7 +38,7 @@ instructions:
not_equals_value: Windows
# Call mingw32-make when host os is Windows + MinGW (this includes building for Android)
- type: ExecuteCommand
command: "{{.Env.CALL_MAKE_ENV_PREFIX}} mingw32-make"
command: "{{.Env.CALL_MAKE_ENV_PREFIX}} mingw32-make -j {{.NumCPU}}"
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
maxTimeInSeconds: 6000
maxTimeBetweenOutput: 1200