Skip to content

Commit

Permalink
Support for 1cpu machines (#2)
Browse files Browse the repository at this point in the history
Support for 1cpu machines
  • Loading branch information
Jesus89 authored May 14, 2019
2 parents de21dad + a8eda39 commit 5f39cc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ if [ $ARCH == "darwin" ]; then
CC="clang"
J=$(($(sysctl -n hw.ncpu)-1))
else
J=$(($(nproc)-1))
#support for 1cpu machines
J=`nproc`
if [ $J -gt 1 ]; then
J=$(($(nproc)-1))
fi
fi

0 comments on commit 5f39cc3

Please sign in to comment.