summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index b11e7cfcd..62dda84b9 100755
--- a/build.sh
+++ b/build.sh
@@ -24,6 +24,8 @@ COMMON="--enable-packetver=20150513 --enable-debug=gdb${SQL}"
if [[ "$(uname)" == "FreeBSD" ]]; then
MAKE=gmake
export CORES=$(sysctl hw.ncpu | awk '{print $2}')
+elif [[ "$(uname)" == "Darwin" ]]; then
+ export CORES=$(sysctl hw.ncpu | awk '{print $2}')
else
COMMON+=" --enable-epoll"
export CORES=$(cat /proc/cpuinfo|grep processor|wc -l)