Skip to content

Commit 8b7938b

Browse files
committed
fix(install-boost.sh): exit code 0
1 parent 72c67af commit 8b7938b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

install-boost.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ download_boost_source() {
2424
boost_cxxflags='-arch arm64 -arch x86_64'
2525

2626
build_boost_macos() {
27-
[[ -n "${boost_libs}" ]] || return
2827
cd "${BOOST_ROOT}"
2928
./bootstrap.sh --with-toolset=clang --with-libraries="${boost_libs}"
3029
./b2 -q -a link=static architecture=arm cxxflags="${boost_cxxflags}" stage
@@ -43,7 +42,7 @@ if [[ $# -eq 0 || " $* " =~ ' --download ' ]]; then
4342
./bootstrap.sh
4443
./b2 headers
4544
fi
46-
if [[ $# -eq 0 || " $* " =~ ' --build ' ]]; then
45+
if [[ ($# -eq 0 || " $* " =~ ' --build ') && -n "${boost_libs}" ]]; then
4746
if [[ "$OSTYPE" =~ 'darwin' ]]; then
4847
build_boost_macos
4948
fi

0 commit comments

Comments
 (0)