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