On Thu, 8 Oct 2026 17:29:43 GMT, Kevin Rushforth <[email protected]> wrote:

> This PR fixes a latent bug, by removing the `-msse2` setting from the media 
> Makefiles on macOS.
> 
> Compiling JavaFX media on macOS / aarch64 with Xcode 26 or later fails with 
> an error:
> 
> 
> $ gradle -PCOMPILE_MEDIA=true
> ...
> clang: error: unsupported option '-msse2' for target 'arm64-apple-macos-11' 
> 
> 
> On Xcode 15.4, this is a warning, but on Xcode 26 and later, it is an error.
> 
> There is logic in the Makefile to only add `-msse2` on x64 systems, but it 
> fails because the `ARCH` parameter being passed into the Makefile is not 
> correct in all cases (it is set to `aarch64`, whereas macOS natively expects 
> `arm64`).
> 
> On x64 systems, `-msse2` is enabled by default. So there is no need to set it 
> at all: This setting is redundant on x64 and actively harmful on aarch64 
> systems.
> 
> We might want to file a follow-up bug to fix the setting of `ARCH` for the 
> cases where it is incorrect, but that is a more intrusive change that would 
> need additional testing. Even if we eventually do that, removing `-msse2` is 
> still the right thing to do.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 3fd289f7
Author:    Kevin Rushforth <[email protected]>
URL:       
https://git.openjdk.org/jfx/commit/3fd289f7bead5905d6fd947175e9f60e695d8685
Stats:     12 lines in 3 files changed: 0 ins; 12 del; 0 mod

8393895: [macOS] Media build with Xcode 26.x fails: unsupported option '-msse2'

Reviewed-by: angorya, almatvee

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

PR: https://git.openjdk.org/jfx/pull/2340

Reply via email to