Enable instrumentation per default; generate logfiles; parallel build.

This commit is contained in:
Christoph Niethammer 2011-03-31 10:47:30 +00:00
parent 316a00aefb
commit 3c34ba9a86

View file

@ -19,6 +19,8 @@ COMPILER=${COMPILER:=gnu}
# use specific compiler version # use specific compiler version
COMPILER_VERSION=${COMPILER_VERSION:=} COMPILER_VERSION=${COMPILER_VERSION:=}
MAKEOPTS="-j3"
# package to build # package to build
CATEGORY="compiler" CATEGORY="compiler"
PACKAGE="mcxx-nanox" PACKAGE="mcxx-nanox"
@ -32,7 +34,7 @@ mcxx_src_dir="$SRC_POOL/mcxx/mcxx.git"
nanox_src_dir="$SRC_POOL/nanox/nanox.git" nanox_src_dir="$SRC_POOL/nanox/nanox.git"
# enable instrumentation (no|yes) # enable instrumentation (no|yes)
instrumentation=${instrumentation:="no"} instrumentation=${instrumentation:="yes"}
# Compiler specifications # Compiler specifications
@ -99,11 +101,12 @@ make_package ()
fi fi
mkdir build mkdir build
cd build cd build
../configure --prefix=$PREFIX $* || fail ../configure --prefix=$PREFIX $* 2>&1 | tee "configure.log"; ( exit ${PIPESTATUS} )
echo -n "compiling... " echo -n "compiling... "
make || fail make $MAKEOPTS 2>&1 | tee "make.log"; ( exit ${PIPESTATUS} )
echo -n "installing... " echo -n "installing... "
make install || fail make install 2>&1 | tee "make_install.log"; ( exit ${PIPESTATUS} )
bzip2 *.log
cd .. cd ..
echo "Success" echo "Success"
} }