Skip to content

Commit db1b5ef

Browse files
committed
fix: set iphoneos-version-min to 10.0 for 32-bit builds
Fixes builds failing due to the clang warning being triggered: clang: error: invalid iOS deployment version '-miphoneos-version-min=15.0', iOS 10 is the maximum deployment target for 32-bit targets [-Winvalid-ios-deployment-target]
1 parent 0774716 commit db1b5ef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎qtox/build_utils.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ parse_arch() {
128128
MAKE_JOBS="$(sysctl -n hw.ncpu)"
129129
CMAKE_TOOLCHAIN_FILE=("-DCMAKE_OSX_DEPLOYMENT_TARGET=$MACOS_MINIMUM_SUPPORTED_VERSION")
130130
elif [[ "$SCRIPT_ARCH" == "ios-"* ]]; then
131+
if [ "$SCRIPT_ARCH" == "ios-armv7" ] || [ "$SCRIPT_ARCH" == "ios-armv7s" ]; then
132+
# iOS 10 is the last deployment target supported for 32-bit builds, per a clang warning
133+
IOS_MINIMUM_SUPPORTED_VERSION="10.0"
134+
fi
131135
ARCH="${SCRIPT_ARCH#ios-}"
132136
DEP_PREFIX="${DEP_PREFIX:-/opt/buildhome}"
133137
mkdir -p "$DEP_PREFIX"

0 commit comments

Comments
 (0)