From: Bart Van Assche Date: Wed, 4 Jun 2008 18:57:08 +0000 (+0000) Subject: Enabled parallel compilation. X-Git-Tag: svn/VALGRIND_3_4_0~516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f8379801f3ef3e33b47b47259b8ee373c60affa;p=thirdparty%2Fvalgrind.git Enabled parallel compilation. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8188 --- diff --git a/exp-drd/scripts/compile-gcc b/exp-drd/scripts/compile-gcc index b74ea14123..e0c833cdd6 100755 --- a/exp-drd/scripts/compile-gcc +++ b/exp-drd/scripts/compile-gcc @@ -14,6 +14,7 @@ SRC=$HOME/software/gcc-${GCC_VERSION} 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 @@ ${SRC}/configure \ --enable-tls \ --prefix=$PREFIX -make -s || exit $? -make -s install || exit $? +time { make -s && make -s install; }