RFR: 8276174: Build failure on MacBook Air (M1) in JFX component graphics

Andreas Heger duke at openjdk.java.net
Thu Nov 18 17:12:54 UTC 2021


On Thu, 11 Nov 2021 13:37:37 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> By changing the value for the clang -arch parameter to "arm64", the jfx project compiles on an apple silicon system. Are there any side effects which I might be missing in this simple solution?
>
> Did you build WebKit and media with this fix? This might be an OK stop gap, but a more permanent solution would probably be to automatically set `TARGET_ARCH` to `arm64` when `OS_ARCH` is set to `aarch64`.

@kevinrushforth 
> Did you build WebKit and media with this fix? This might be an OK stop gap, but a more permanent solution would probably be to automatically set `TARGET_ARCH` to `arm64` when `OS_ARCH` is set to `aarch64`.

You are right, WebKit and media did not build with the original fix, so I now changed the build.gradle file to set the `TARGET_ARCH`to `arm64`on Macs with `OS_ARCH`== `aarch64`. All modules can be build now.

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

PR: https://git.openjdk.java.net/jfx/pull/666


More information about the openjfx-dev mailing list