Skip to content

Commit cbcd821

Browse files
committed
Stuff regarding the platform triplet.
1 parent e4ec30b commit cbcd821

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

configure

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,26 @@ if test "$cross_compiling" = yes; then
888888
*-*-cygwin*)
889889
_host_ident=
890890
;;
891+
*-apple-ios*-macabi)
892+
_host_os=`echo $host | cut -d '-' -f3`
893+
_host_device=`echo $host | cut -d '-' -f4` # should be macabi
894+
_host_device=${_host_device:=os}
895+
896+
# IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
897+
AC_MSG_CHECKING([iOS deployment target])
898+
IPHONEOS_DEPLOYMENT_TARGET=$(echo ${_host_os} | cut -c4-)
899+
IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=14.0} # else it returns invalid version number
900+
AC_MSG_RESULT([$IPHONEOS_DEPLOYMENT_TARGET])
901+
902+
case "$host_cpu" in
903+
aarch64)
904+
_host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-arm64-iphoneos-${_host_device} # platform_triplet.c uses iphoneos-macabi
905+
;;
906+
*)
907+
_host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-$host_cpu-iphoneos-${_host_device}
908+
;;
909+
esac
910+
;;
891911
*-apple-ios*)
892912
_host_os=`echo $host | cut -d '-' -f3`
893913
_host_device=`echo $host | cut -d '-' -f4`

0 commit comments

Comments
 (0)