Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Don't exit build script if #cores evaluates to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
damonbarry committed Jun 8, 2017
1 parent 9ee2ca1 commit adef1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ get_cores ()

if [ "$VSPACE" -lt "$MINVSPACE" ] ; then
# We think the number of cores to use is a function of available memory divided by 500 MB
CORES2=$(expr ${MEMAR[0]} / 500000)
CORES2=$(expr ${MEMAR[0]} / 500000) || true

# Clamp the cores to use to be between 1 and $CORES (inclusive)
CORES2=$([ $CORES2 -le 0 ] && echo 1 || echo $CORES2)
Expand Down

0 comments on commit adef1dd

Please sign in to comment.