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

Don't exit build script if #cores evaluates to zero #300

Merged
merged 1 commit into from
Jun 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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