Add support for builders with distcc installed

This commit is contained in:
Vincent Sanders 2015-08-12 14:50:54 +01:00
parent 1ee30e7632
commit fd21e488e0

View File

@ -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=