diff options
author | gumi <git@gumi.ca> | 2018-03-13 11:23:03 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-03-13 11:24:04 -0400 |
commit | 1ef9b7bcbf4fde3293c8514d18975d73a18fd041 (patch) | |
tree | 281d1e9668bbf38eb93de60f1f7667d5d3fb9a41 | |
parent | 8b5a1f0cf0a697e2c5b8bc8461fc95f3e5a83163 (diff) | |
download | hercules-1ef9b7bcbf4fde3293c8514d18975d73a18fd041.tar.gz hercules-1ef9b7bcbf4fde3293c8514d18975d73a18fd041.tar.bz2 hercules-1ef9b7bcbf4fde3293c8514d18975d73a18fd041.tar.xz hercules-1ef9b7bcbf4fde3293c8514d18975d73a18fd041.zip |
add Darwin support in the build scripts20180313
-rwxr-xr-x | build.sh | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |