When trying to limit the building threads with either colcon build --parallel-workers 2 or colcon build --executor sequential, the underlying make command is still called with the number of available threads.
In catkin build we had the --jobs and --parallel-packages parameters.
In colcon build the executor seems to be similar to the --parallel-packages parameter.
Desired behavior
--jobs parameter to catkin build
-j JOBS, --jobs JOBS Maximum number of build jobs to be distributed across active packages. (default is cpu count)
Possible workaround
Using export MAKEFLAGS="-j2" seems to limit the number of jobs per package
Other ideas are welcome, to the point of manually modifying the colcon_core/../build.py
Issue
When trying to limit the building threads with either
colcon build --parallel-workers 2
orcolcon build --executor sequential
, the underlyingmake
command is still called with the number of available threads.In
catkin build
we had the--jobs
and--parallel-packages
parameters.In
colcon build
the executor seems to be similar to the--parallel-packages
parameter.Desired behavior
--jobs
parameter tocatkin build
Possible workaround
Using![image](https://github.com/user-attachments/assets/2992c801-24cd-48c6-adc0-ba7c5f9e6b50)
export MAKEFLAGS="-j2"
seems to limit the number of jobs per packageOther ideas are welcome, to the point of manually modifying the colcon_core/../build.py