|
From: <sv...@va...> - 2008-06-04 18:57:05
|
Author: bart
Date: 2008-06-04 19:57:08 +0100 (Wed, 04 Jun 2008)
New Revision: 8188
Log:
Enabled parallel compilation.
Modified:
trunk/exp-drd/scripts/compile-gcc
Modified: trunk/exp-drd/scripts/compile-gcc
===================================================================
--- trunk/exp-drd/scripts/compile-gcc 2008-06-04 18:08:10 UTC (rev 8187)
+++ trunk/exp-drd/scripts/compile-gcc 2008-06-04 18:57:08 UTC (rev 8188)
@@ -14,6 +14,7 @@
BUILD=${SRC}-build
TAR=gcc-${GCC_VERSION}.tar.bz2
PREFIX=$HOME/gcc-${GCC_VERSION}
+export MAKEFLAGS="-j$(($(grep -c '^processor' /proc/cpuinfo) + 1))"
if [ ! -e /usr/include/gmp.h ]; then
echo "Please install the gmp library development package first."
@@ -48,5 +49,4 @@
--enable-tls \
--prefix=$PREFIX
-make -s || exit $?
-make -s install || exit $?
+time { make -s && make -s install; }
|