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=