Skip to content

Commit

Permalink
build(install-boost.sh): no need to set SDK path since xcode12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan authored and lotem committed Jan 15, 2021
1 parent 99b0033 commit 16ef046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install-boost.sh
Expand Up @@ -24,12 +24,12 @@ download_boost_source() {
}

boost_libs="${boost_libs=filesystem,regex,system}"
boost_cxxflags='-arch arm64 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
boost_cxxflags='-arch arm64 -arch x86_64'

build_boost_macos() {
cd "${BOOST_ROOT}"
./bootstrap.sh --with-libraries="${boost_libs}"
./b2 -q -a toolset=darwin link=static cxxflags="${boost_cxxflags}" stage
./bootstrap.sh --with-toolset=clang-darwin --with-libraries="${boost_libs}"
./b2 -q -a link=static architecture=combined cxxflags="${boost_cxxflags}" stage
}

if [[ "$OSTYPE" =~ 'darwin' ]]; then
Expand Down

0 comments on commit 16ef046

Please sign in to comment.