Skip to content

Commit

Permalink
fix(install-boost.sh): exit code 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Mar 8, 2024
1 parent 72c67af commit 8b7938b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install-boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ download_boost_source() {
boost_cxxflags='-arch arm64 -arch x86_64'

build_boost_macos() {
[[ -n "${boost_libs}" ]] || return
cd "${BOOST_ROOT}"
./bootstrap.sh --with-toolset=clang --with-libraries="${boost_libs}"
./b2 -q -a link=static architecture=arm cxxflags="${boost_cxxflags}" stage
Expand All @@ -43,7 +42,7 @@ if [[ $# -eq 0 || " $* " =~ ' --download ' ]]; then
./bootstrap.sh
./b2 headers
fi
if [[ $# -eq 0 || " $* " =~ ' --build ' ]]; then
if [[ ($# -eq 0 || " $* " =~ ' --build ') && -n "${boost_libs}" ]]; then
if [[ "$OSTYPE" =~ 'darwin' ]]; then
build_boost_macos
fi
Expand Down

0 comments on commit 8b7938b

Please sign in to comment.