summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-03-13 11:23:03 -0400
committergumi <git@gumi.ca>2018-03-13 11:24:04 -0400
commit1ef9b7bcbf4fde3293c8514d18975d73a18fd041 (patch)
tree281d1e9668bbf38eb93de60f1f7667d5d3fb9a41
parent8b5a1f0cf0a697e2c5b8bc8461fc95f3e5a83163 (diff)
downloadhercules-s20180313.tar.gz
hercules-s20180313.tar.bz2
hercules-s20180313.tar.xz
hercules-s20180313.zip
add Darwin support in the build scripts20180313
-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)