From b63622d52757b86d15a4f0ae7b23598fa1c4c8bf Mon Sep 17 00:00:00 2001 From: Christian Zentgraf Date: Mon, 7 Oct 2024 23:35:01 -0700 Subject: [PATCH] Replace nproc in macOS setup script (#11186) Summary: nproc may not be found on macOS causing boost not to install. Instead, switch to use existing NPROC to determine the number of logical CPU that nproc would have returned. Pull Request resolved: https://github.com/facebookincubator/velox/pull/11186 Reviewed By: kgpai Differential Revision: D64000667 Pulled By: xiaoxmeng fbshipit-source-id: 8238f49785508b9aee10794db4eb15f1f3a167d2 --- 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 ) }