File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff 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`
You can’t perform that action at this time.
0 commit comments