RFR: 8346233: [mobile] enable static-libs-image for iOS

Magnus Ihse Bursie ihse at openjdk.org
Sat Dec 14 15:15:40 UTC 2024


On Sat, 14 Dec 2024 15:08:29 GMT, Johan Vos <jvos at openjdk.org> wrote:

> This PR makes it possible to build hotspot with zero interpreter for ios using
> `make static-libs-image`
> 
> This creates, amongst the native classlibs that we already had, a libjvm.a library that can be used on iOS.
> 
> Configuring the build can be done similar to what I do in my configuration:
> 
> sh configure \
> --with-conf-name=zero-ios-aarch64 \
> --disable-warnings-as-errors \
> --openjdk-target=aarch64-macos-ios \
> --with-build-jdk=/opt/jdk-25-jv.jdk \
> --with-boot-jdk=/opt/jdk-24.jdk/Contents/Home \
> --with-jvm-variants=zero \
> --with-libffi-include=/Users/johan/libffi/exp/t2/libffi-3.4.5/build_iphoneos-arm64/include \
> --with-libffi-lib=/Users/johan/libffi/exp/t2/libffi-3.4.5/build_iphoneos-arm64/.libs \
> --with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk \
> --with-cups-include=../support/cups-2.3.6

Wow! I am surprised the patch was this small. It's hardly doing any changes at all. This is very encouraging!

-------------

Marked as reviewed by ihse (Reviewer).

PR Review: https://git.openjdk.org/mobile/pull/32#pullrequestreview-2503900734


More information about the mobile-dev mailing list