Skip to content

Commit

Permalink
Replace nproc in macOS setup script (#11186)
Browse files Browse the repository at this point in the history
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: #11186

Reviewed By: kgpai

Differential Revision: D64000667

Pulled By: xiaoxmeng

fbshipit-source-id: 8238f49785508b9aee10794db4eb15f1f3a167d2
  • Loading branch information
czentgr authored and facebook-github-bot committed Oct 8, 2024
1 parent e2231c5 commit b63622d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}

Expand Down

0 comments on commit b63622d

Please sign in to comment.