buildx.sh: utilize all available CPUs when compiling

master
Pavel Roskin 8 years ago
parent 8e7d12ff50
commit b2bbaef640

@ -149,7 +149,7 @@ make_it()
# make module # make module
if [ ! -e cookies/$mod_name.made ]; then if [ ! -e cookies/$mod_name.made ]; then
if ! make -C build_dir/$mod_name if ! make -j $NPROC -C build_dir/$mod_name
then then
echo "" echo ""
echo "make failed for module $mod_name" echo "make failed for module $mod_name"
@ -267,6 +267,10 @@ if [ ! -d cookies ]; then
fi fi
fi fi
if ! NPROC=`nproc`; then
NPROC=1
fi
while IFS=: read mod_file mod_dir mod_args while IFS=: read mod_file mod_dir mod_args
do do
mod_args=`eval echo $mod_args` mod_args=`eval echo $mod_args`

Loading…
Cancel
Save