From 41c838d136f67bd402ae8e27156e62c84ba31320 Mon Sep 17 00:00:00 2001 From: Christian Zentgraf Date: Mon, 7 Oct 2024 11:32:31 -0400 Subject: [PATCH] Replace nproc in macOS setup script nproc may not be found on macOS causing boost not to install. Instead, switch to use sysctl to determine the number of logical CPU that nproc would have returned. --- scripts/setup-macos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup-macos.sh b/scripts/setup-macos.sh index da1f73d8a8a1..76d7fe606fd8 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${NPROC}" -d0 install threading=multi --without-python ) }