diff --git a/scripts/setup-macos.sh b/scripts/setup-macos.sh index da1f73d8a8a18..ab65c86b148ea 100755 --- a/scripts/setup-macos.sh +++ b/scripts/setup-macos.sh @@ -104,7 +104,7 @@ function install_boost { ( cd ${DEPENDENCY_DIR}/boost ./bootstrap.sh --prefix=${INSTALL_PREFIX} - ${SUDO} ./b2 "-j$(nproc)" -d0 install threading=multi --without-python + ${SUDO} ./b2 "-j$(sysctl -n hw.logicalcpu)" -d0 install threading=multi --without-python ) }