Open matteogrechi opened 6 months ago
As far as I know, that is the expected behaviour with colcon. --parallel-workers
controls the number of "jobs" (i.e., packages in this case) being built in parallel, but then each package itself may or may not be built in parallel using multiple threads. That part depends on the underlying built system, e.g., CMake. As you've found, using the MAKEFLAGS
environment variable is the proper way to control this for CMake packages.
I tried using --executor sequential
, and the result was the same as above
--executor sequential
only means that colcon
will process (e.g., build or test) 1 package at a time.
When running
colcon build --parallel-workers 1
on cpp code the number of compiler threads is not 1. To have the "expected" behaviour I should run insteadIs this behaviour intended? Is it possible to cite this fact directly in the colcon documentation?
Thank you very much!