From fb694b56ab86f8c5b3a8fadd7e4b91a7586abc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki-Chudyk?= Date: Thu, 23 Jun 2016 18:35:56 +0200 Subject: [PATCH] use as many jobs in cargo as there are processors --- common/configure_fresh_system | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/configure_fresh_system b/common/configure_fresh_system index 0d6d4e1d..a475bb7d 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -12,6 +12,7 @@ if [[ -z $DONT_CHANGE_SHELL ]]; then fi CURL="curl -sSf" +jobs_count=`nproc` #submodules DIR=`realpath $DIR` @@ -92,8 +93,8 @@ set +e cargo uninstall rustfmt cargo uninstall racer set -e -cargo install rustfmt -cargo install racer +cargo install -j $jobs_count rustfmt +cargo install -j $jobs_count racer # rvm gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3