Commit a3260478 authored by arthurprs's avatar arthurprs

allow explicity MAKE_PARALLELISM

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