From 4f5d214d4a5783d8db1f7351f2072260f23105a9 Mon Sep 17 00:00:00 2001 From: Vlad Solomenchuk Date: Fri, 8 Mar 2024 11:18:48 -0800 Subject: [PATCH] use `BOOST_SP_USE_SPINLOCK` for arm builds --- boost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boost.sh b/boost.sh index ebb98be9..a4caca11 100755 --- a/boost.sh +++ b/boost.sh @@ -1671,7 +1671,7 @@ 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" +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"