use as many jobs in cargo as there are processors

This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-06-23 18:35:56 +02:00
parent 1223a855bf
commit fb694b56ab

View file

@ -12,6 +12,7 @@ if [[ -z $DONT_CHANGE_SHELL ]]; then
fi fi
CURL="curl -sSf" CURL="curl -sSf"
jobs_count=`nproc`
#submodules #submodules
DIR=`realpath $DIR` DIR=`realpath $DIR`
@ -92,8 +93,8 @@ set +e
cargo uninstall rustfmt cargo uninstall rustfmt
cargo uninstall racer cargo uninstall racer
set -e set -e
cargo install rustfmt cargo install -j $jobs_count rustfmt
cargo install racer cargo install -j $jobs_count racer
# rvm # rvm
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3