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

Kevin Rushforth kcr at openjdk.java.net
Fri Nov 19 13:45:43 UTC 2021


On Thu, 18 Nov 2021 17:02:19 GMT, Andreas Heger <duke at openjdk.java.net> 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?
>
> Andreas Heger has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8276174: Set default TARGET_ARCH to "arm64" on apple silicon machines

Marked as reviewed by kcr (Lead).

Given the current build structure, it seems better to have this in `build.gradle`. For all other cases, the processor arch of the boot JDK is used as the default target architecture. For macOS it tries to do the same thing, but we need to do a mapping on macOS from aarch64 --> arm64 when passing the flag to the clang compiler since there is otherwise a mismatch.

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

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


More information about the openjfx-dev mailing list