Set a parallel build

To reduce compile time, you can enable parallel build. The parallel build means that the makefile does not compile one file after each other but instead creates a set of parallel builds.

You can enable the parallel build by setting the Enable parallel build option from the project properties on the Behavior tab. See how to open project properties. (properties button)

ide parallel build
Fig. 1. Project properties

The optimal job number specifies the maximum number of parallel jobs the makefile performs. The number of ‘optimal jobs’ depends on the number of CPUs of your machine.

Known limitations

The makefile cannot distinguish the priority order of called targets during the parallel build, which could cause a problem during the multitarget command. For example, if you trigger Rebuild Active Project action, it means to call two targets from the makefile perspective. The clean target and the build target. It could happen (depends on the project complexity) that the makefile runs the build target before the makefile finish the clean target, which would lead to the compilation problems.

Due to the asynchronicity of the makefiles threads, we recommend either:

  • not to use the parallel build option for multitarget commands (Rebuild)

or

  • call the targets separately. e.g. in case of rebuild action, call the clean target first, and then call the build command. In this case both commands can run as a parallel process.