trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2014

Re: [trinity-devel] Can TDE now build in parallel jobs (i.e. -j2 or -j4)?

From: "Darrell Anderson" <darrella@...>
Date: Mon, 20 Jan 2014 15:47:37 -0600
>  A year or so ago, building with make -j >1 was advised against 
>due to the
>potential to produce spurious build failures, etc. Has that 
>changed? The build
>time savings is attractive, but if there hasn't been any testing, 
>best to stick
>to -j1 for now?

The only build scripts where I limit NUMJOBS=-j1:

dependencies/avahi-tqt/avahi-tqt.SlackBuild
libraries/pytdeextensions/pytdeextensions.SlackBuild
tdebindings/tdebindings.SlackBuild

For everything else:

if [ "$NUMJOBS" = "" ]; then
  NUMJOBS="`grep -c '^processor' /proc/cpuinfo`"
  NUMJOBS=$(($NUMJOBS + 2))
  export NUMJOBS="-j${NUMJOBS}"
fi

Darrell