colcon makeflags defaults

asked 2021-09-26 22:05:03 -0500

BrettRD gravatar image

Hi all,

I'm trying to run some automated builds on a remote system that's already too hot.

I currently use .colcon/defaults.yml to set a few niceties, but I can't find any examples of setting make threads aside from an environment variable.

almost what I need, but not quite:

The defaults.yml (jinja2 template) I have so far:

    "build": {
  {% if ros2_colcon_symlink %}
      "symlink-install": true,
  {% endif %}
  {% if ros2_colcon_single_core %}
      "parallel-workers": 1,
      "make-flags" :"-j1",
  {% endif %}
  {% if ros2_colcon_needs_latomic %}
      "cmake-args":[ "-DCMAKE_SHARED_LINKER_FLAGS='-latomic'","-DCMAKE_EXE_LINKER_FLAGS='-latomic'" ],
  {% endif %}

specifically the "make-flags" :"-j1", line doesn't work, and the docs suggest that it shouldn't.

Is there a work-around to do this? or do I have to scatter my build settings?


edit retag flag offensive close merge delete