From fd21e488e00a44ad60f7207f0d728f865cc92e47 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 12 Aug 2015 14:50:54 +0100 Subject: [PATCH] Add support for builders with distcc installed --- utils/jenkins-build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/utils/jenkins-build.sh b/utils/jenkins-build.sh index 994626a77..7393b852a 100755 --- a/utils/jenkins-build.sh +++ b/utils/jenkins-build.sh @@ -377,6 +377,15 @@ else BUILD_DUKTAPE=NO fi +########### Use distcc if present ###### + +DISTCC=distcc +PARALLEL=1 +${DISTCC} --version >/dev/null 2>&1 +if [ $? -eq 0 ];then + PARALLEL=$(${DISTCC} -j) + export PATH=/usr/lib/distcc:${PATH} +fi @@ -386,8 +395,7 @@ fi ${MAKE} NETSURF_USE_DUKTAPE=${BUILD_DUKTAPE} NETSURF_USE_JS=${BUILD_JS} NETSURF_USE_MOZJS=${BUILD_MOZJS} clean # Do the Build -${MAKE} -k NETSURF_USE_DUKTAPE=${BUILD_DUKTAPE} NETSURF_USE_JS=${BUILD_JS} NETSURF_USE_MOZJS=${BUILD_MOZJS} CI_BUILD=${BUILD_NUMBER} ATARIARCH=${ATARIARCH} Q= - +${MAKE} -j ${PARALLEL} -k NETSURF_USE_DUKTAPE=${BUILD_DUKTAPE} NETSURF_USE_JS=${BUILD_JS} NETSURF_USE_MOZJS=${BUILD_MOZJS} CI_BUILD=${BUILD_NUMBER} ATARIARCH=${ATARIARCH} Q=