[jdk11u-dev] RFR: 8344458: [11u] Add initial support for building with XCode 14

Antonio Vieiro duke at openjdk.org
Mon Nov 18 22:56:14 UTC 2024


On Mon, 18 Nov 2024 22:12:39 GMT, Antonio Vieiro <duke at openjdk.org> wrote:

> An implementation of [JDK-8344458](https://bugs.openjdk.org/browse/JDK-8344458) that adds conditional support for building on `macos` with `XCode 14` while keeping compatibility with previous `XCode` versions.
> 
> The PR is separated in three commits for easier review:
> 
> - First commit adds a new `--enable-xcode14` configuration flag (which is currently disabled in GHA) and two additional variables:
>     - `CFLAGS_XCODE14_DEPR_DECLARATIONS` (empty on current XCode versions, set to and `-Wno-deprecated-declarations` when `--enable-xcode14`is used)
>     - And `CFLAGS_XCODE14_DEPR_NON_PROTOTYPE` (empty on current XCode versions, set to `-Wno-deprecated-non-prototype` when `--enable-xcode14` is used).
> - The second commit applies `CFLAGS_XCODE14_DEPR_DECLARATIONS` to those parts of the codebase that use the deprecated `sprintf` function (i.e., avoiding `sprintf` usage errors in XCode 14).
> - The third commit applies `CFLAGS_XCODE14_DEPR_NON_PROTOTYPE` to those parts of AWT lib that generate a compilation error (i.e., avoiding the `passing arguments to a function without prototype`).
> 
> Since the new flag `--enable-xcode14` is not set **the build should run exactly the same on the current XCode versions** and, consequently, the GitHub checks should pass on all platforms, including the current `macos-12` & `XCode 13.4.1`.

NOTE: [The GHA `macos-12`  runners have been shut-down](https://github.com/actions/runner-images/issues/10721)  between November 18, 14:00 UTC and November 19, 00:00 UTC and are currently unavailable. The tests will be re-run when again available.

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

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2966#issuecomment-2484301422


More information about the jdk-updates-dev mailing list