diff --git a/mcxx-nanox_install.sh b/mcxx-nanox_install.sh index 1f89818..2fcf22e 100755 --- a/mcxx-nanox_install.sh +++ b/mcxx-nanox_install.sh @@ -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" }