From 16ef046ec43cf2c15684b5fe51dc3c9b0ee332c0 Mon Sep 17 00:00:00 2001 From: Xingwang Liao Date: Fri, 15 Jan 2021 03:49:01 +0000 Subject: [PATCH] build(install-boost.sh): no need to set SDK path since xcode12.3 See: https://stackoverflow.com/questions/64553398/compile-boost-as-universal-library-intel-and-apple-silicon-architectures --- install-boost.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-boost.sh b/install-boost.sh index 6539da8fa..7302a7695 100755 --- a/install-boost.sh +++ b/install-boost.sh @@ -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