Skip to content

Commit

Permalink
Replace nproc in macOS setup script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
czentgr committed Oct 7, 2024
1 parent 4f11402 commit fec7122
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$(sysctl -n hw.logicalcpu)" -d0 install threading=multi --without-python
)
}

Expand Down

0 comments on commit fec7122

Please sign in to comment.