Commit a3260478 authored by arthurprs's avatar arthurprs

allow explicity MAKE_PARALLELISM

parent ee4c6ebb
......@@ -3,10 +3,14 @@
set -e
con=1
if [[ -f /proc/cpuinfo ]]; then
con=`grep -c processor /proc/cpuinfo`
if [ "$MAKE_PARALLELISM" ]; then
con=$MAKE_PARALLELISM
else
con=`sysctl -n hw.ncpu 2>/dev/null || echo 1`
if [[ -f /proc/cpuinfo ]]; then
con=`grep -c processor /proc/cpuinfo`
else
con=`sysctl -n hw.ncpu 2>/dev/null || echo 1`
fi
fi
function error() {
......
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