From 0b5b95f5f06e01cd55b72ad48401cebdc8141fa3 Mon Sep 17 00:00:00 2001 From: Todd Diehl Date: Tue, 1 Mar 2022 15:42:55 -0700 Subject: [PATCH] Update EXTRA_ARM_FLAGS for iOS. --- boost.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boost.sh b/boost.sh index aafbbd70..8449ee98 100755 --- a/boost.sh +++ b/boost.sh @@ -1584,7 +1584,8 @@ EXTRA_FLAGS="-fembed-bitcode -Wno-unused-local-typedef -Wno-nullability-complete # Note these flags (BOOST_AC_USE_PTHREADS and BOOST_SP_USE_PTHREADS) should # only be defined for arm targets. They will cause random (but repeatable) # shared_ptr crashes on macOS in boost thread destructors. -EXTRA_ARM_FLAGS="-DBOOST_AC_USE_PTHREADS -DBOOST_SP_USE_PTHREADS -g -DNDEBUG" +# Latest incarnation uses SPINLOCK instead as this seems to work better on iOS +EXTRA_ARM_FLAGS="-DBOOST_SP_USE_SPINLOCK -g -DNDEBUG" EXTRA_IOS_FLAGS="$EXTRA_FLAGS $EXTRA_ARM_FLAGS -mios-version-min=$MIN_IOS_VERSION" EXTRA_IOS_SIM_FLAGS="$EXTRA_FLAGS $EXTRA_ARM_FLAGS -mios-simulator-version-min=$MIN_IOS_VERSION"