[vlc-commits] [Git][videolan/vlc][master] 2 commits: package/apple: require iOS 15 for arm64 and keep iOS 9 for armv7

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Oct 19 18:09:57 UTC 2026



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
f6ca33b2 by Felix Paul Kühne at 2026-10-19T19:26:45+02:00
package/apple: require iOS 15 for arm64 and keep iOS 9 for armv7

Apple discontinued acceptance of pre-iOS-13 binaries to the App Store
and all iOS 13/14 devices support iOS 15 so raise the deployement
target. This relates to #30153.

For ARMv7, the existing iOS 9 deployment target is kept.

- - - - -
724aec37 by Felix Paul Kühne at 2026-10-19T19:26:45+02:00
package/apple: use the system provided clock_gettime

It was added in iOS 10 and macOS 10.12.

The compat clock_gettime() makes two sysctl() calls per vlc_tick_now()
taking almost a quarter of VLC's CPU time when playing audio on iOS.

In case of iOS deployment targets earlier than 10, the compat function
is continued to be used.

- - - - -


3 changed files:

- extras/package/apple/build.conf
- extras/package/apple/build.sh
- extras/package/macosx/env.build.sh


Changes:

=====================================
extras/package/apple/build.conf
=====================================
@@ -13,8 +13,9 @@
 # macOS deployment target
 export VLC_DEPLOYMENT_TARGET_MACOSX="10.13"
 # iOS deployment target
-export VLC_DEPLOYMENT_TARGET_IOS="9.0"
-export VLC_DEPLOYMENT_TARGET_IOS_SIMULATOR="12.0"
+export VLC_DEPLOYMENT_TARGET_IOS_arm64="15.0"
+export VLC_DEPLOYMENT_TARGET_IOS_armv7="9.0"
+export VLC_DEPLOYMENT_TARGET_IOS_SIMULATOR="15.0"
 # tvOS deployment target
 export VLC_DEPLOYMENT_TARGET_TVOS="11.0"
 export VLC_DEPLOYMENT_TARGET_TVOS_SIMULATOR="12.0"


=====================================
extras/package/apple/build.sh
=====================================
@@ -288,7 +288,8 @@ set_build_triplet()
 # on the SDK and calls the set_deployment_target
 # function with the rigth target version
 # Globals:
-#   VLC_DEPLOYMENT_TARGET_IOS
+#   VLC_DEPLOYMENT_TARGET_IOS_arm64
+#   VLC_DEPLOYMENT_TARGET_IOS_armv7
 #   VLC_DEPLOYMENT_TARGET_TVOS
 #   VLC_DEPLOYMENT_TARGET_MACOSX
 # Arguments:
@@ -310,6 +311,7 @@ validate_sdk_name()
         iphoneos*)
             VLC_HOST_PLATFORM="iOS"
             VLC_HOST_OS="ios"
+            eval "VLC_DEPLOYMENT_TARGET_IOS=\$VLC_DEPLOYMENT_TARGET_IOS_$VLC_HOST_ARCH"
             set_deployment_target "$VLC_DEPLOYMENT_TARGET_IOS"
             ;;
         iphonesimulator*)
@@ -584,12 +586,12 @@ check_tool xcrun
 # Aditionally a lot more is reported by this command, so this needs some more
 # awk parsing or something to get other values with just one query.
 
-# Validate given SDK name
-validate_sdk_name "$VLC_APPLE_SDK_NAME"
-
 # Validate architecture argument
 validate_architecture "$VLC_HOST_ARCH"
 
+# Validate given SDK name
+validate_sdk_name "$VLC_APPLE_SDK_NAME"
+
 # Set triplet (needs to be called after validating the arch)
 set_host_triplet "$VLC_HOST_ARCH"
 set_build_triplet


=====================================
extras/package/macosx/env.build.sh
=====================================
@@ -107,6 +107,13 @@ vlcSetSymbolEnvironment() {
     # write the variables into a config.mak file for the contribs.
     local cmd="${1:-export}"; [ "$#" -ge 1 ] && shift
 
+    if [ "$VLC_HOST_OS" = "ios" ] && [ "${VLC_DEPLOYMENT_TARGET%%.*}" -lt 10 ]; then
+        set -- "$@" \
+            ac_cv_func_clock_getres=no \
+            ac_cv_func_clock_gettime=no \
+            ac_cv_func_clock_settime=no
+    fi
+
     # The following symbols do not exist on the minimal macOS / iOS, so they are disabled
     # here. This allows compilation also with newer macOS SDKs.
     # List assumes macOS 10.10 / iOS 8 at minimum.
@@ -126,9 +133,6 @@ vlcSetSymbolEnvironment() {
     ac_cv_prog_cc_c23=no \
     \
     ac_cv_func_basename_r=no \
-    ac_cv_func_clock_getres=no \
-    ac_cv_func_clock_gettime=no \
-    ac_cv_func_clock_settime=no \
     ac_cv_func_dirname_r=no \
     ac_cv_func_getentropy=no \
     ac_cv_func_mkostemp=no \



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/429df92c508f98038ac992772fea1fec1322c9f9...724aec37958de8173b075f602b10144943e983a6

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/429df92c508f98038ac992772fea1fec1322c9f9...724aec37958de8173b075f602b10144943e983a6
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list