From 39170a867714cdbc18e0c52752f345149543242d Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Tue, 15 May 2018 09:11:17 +0000 Subject: [PATCH] pcl: disable parallel build (resolves #588) Signed-off-by: Martin Jansa [lukas.bulwahn@gmail.com: include reference to meta-ros issue tracker] Signed-off-by: Lukas Bulwahn --- recipes-extended/pcl/pcl_1.8.0.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes-extended/pcl/pcl_1.8.0.bb b/recipes-extended/pcl/pcl_1.8.0.bb index e019bd9..2ad7260 100644 --- a/recipes-extended/pcl/pcl_1.8.0.bb +++ b/recipes-extended/pcl/pcl_1.8.0.bb @@ -40,3 +40,8 @@ CXXFLAGS += "${@bb.utils.contains("TARGET_CC_ARCH", "-mfpmath=sse", "", "-ffloat inherit cmake FILES_${PN}-dev += "${datadir}/${PN}-1.8/*.cmake" + +# The build is really memory hungry (at least with gcc8), even with just -j 8 it triggers OOMK on system with 32GB ram +# High memory needs mentioned in: https://github.com/PointCloudLibrary/pcl/issues/2284 +# Setting just empty doesn't work, ninja will by default use number of cores available +PARALLEL_MAKE = "-j1"