RFR: 8250876: Build system preparation to macos on aarch64

David Holmes david.holmes at oracle.com
Mon Aug 3 03:51:06 UTC 2020


Hi Vladimir,

On 1/08/2020 5:24 pm, Vladimir Kempik wrote:
> Hello
> 
> Please review this change for JDK-8250876
> 
> This changeset adds support for macos/aarch64 into build system.

macOS/Aarch64 is not yet an accepted platform for the OpenJDK. Adding 
such a platform requires a JEP as is being done for the Windows/Aarch64 
port.

Thanks,
David
-----

> It will allow to crosscompile for macos/aarch64 using intel mac as well.
> 
> This changeset does NOT address some arm specific issues in the macos related code, we plan to do that in s separate commit.
> 
> An example of configure to cross-compile for macos/arm64:
> 
> --with-boot-jdk=/path/to/java/ --with-build-jdk=/path/to/same/java/as/compiled  --disable-warnings-as-errors --with-jvm-variants=zero --openjdk-target=aarch64-apple-darwin --with-extra-cflags='-arch arm64' --with-extra-ldflags='-arch arm64 -F/Path/To/Folder/Containing/JNF_framework/' —with-extra-cxxflags='-arch arm64’
> 
> JNF.framework is missing arm64 part as of next macos release, but Apple has opensourced it.
> 
> Fix to adlc were needed due to it using symbols from stdc++ and not linking to it, so it fails when doing make images.
> 
> The webrev: http://cr.openjdk.java.net/~vkempik/8250876/webrev.00/
> The bug: https://bugs.openjdk.java.net/browse/JDK-8250876
> 
> Testing: jdk/submit.
> 
> Thanks, Vladimir.
> 



More information about the build-dev mailing list