detect cores available for build

This commit is contained in:
l3iggs 2014-07-26 19:03:21 -07:00
parent 7b6e6a9de6
commit 4c8301b6c0

View File

@ -24,6 +24,12 @@ fi
echo "$ARCH CPU detected"
if command -v nproc >/dev/null; then
JOBS=$(nproc)
else
JOBS=4
fi
# Platform Assignment
[ -z "$platform" ] && platform="$(uname)"
case "$platform" in