From 0ec928745765e0df5e2754c3c5940802a4eb4432 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 25 May 2020 17:28:43 +0200 Subject: [PATCH] build: actually pass number of cores to ninja Without this ninja supposedely builds with the default of the system which is 10 for my 4 core, 8 thread CPU. With this argument, you can now actually set it. This has the benefit that the Gazebo plugins can be built with less cores in order to avoid running out of RAM. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1fae70c4a1..fc8b712f93 100644 --- a/Makefile +++ b/Makefile @@ -92,9 +92,9 @@ ifdef NINJA_BUILD PX4_MAKE := $(NINJA_BIN) ifdef VERBOSE - PX4_MAKE_ARGS := -v + PX4_MAKE_ARGS := -j $(j) -v else - PX4_MAKE_ARGS := + PX4_MAKE_ARGS := -j $(j) endif else ifdef SYSTEMROOT