Commit 1f950acb authored by Vitaly Lipatov's avatar Vitaly Lipatov

jmake: always use all CPUs

parent 366f93de
......@@ -14,10 +14,13 @@ fi
# get number of available processors
[ -n "$NPROCS" ] || NPROCS=`/usr/bin/getconf _NPROCESSORS_ONLN`
# get rounded load average
LOADAVG=`cat /proc/loadavg | cut -f1 -d" " | sed -e "s/\..*//g"`
MAKEARG=
[ "$(( $NPROCS - $LOADAVG ))" -gt 1 ] && MAKEARG="-j$NPROCS"
MAKEARG="-j$NPROCS"
# use only free CPUs
#[ "$(( $NPROCS - $LOADAVG ))" -gt 1 ] || MAKEARG=""
#make $MAKEARG "CC=$CC" "CXX=$CXX" "CPP=$CPP" "CXXCPP=$CXXCPP" $@
time -p make $MAKEARG $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment