Skip to content

[4.2] Allow compiling with warnings with min macOS version up to 14 - #122565

Open
aaronfranke wants to merge 1 commit into
godotengine:4.2from
aaronfranke:4.2-macos-min-ver
Open

[4.2] Allow compiling with warnings with min macOS version up to 14#122565
aaronfranke wants to merge 1 commit into
godotengine:4.2from
aaronfranke:4.2-macos-min-ver

Conversation

@aaronfranke

Copy link
Copy Markdown
Member

What problem(s) does this PR solve?

This PR fixes Godot 4.2's Objective-C++ code to allow compiling with newer minimum macOS versions, up to macOS 14.0.

Justification: We should give users the flexibility to customize the minimum macOS version if they need to, such as if a dependency requires a newer minimum macOS version. This adds longevity to the 4.2 branch for macOS.

Additional information

No AI was used to make this PR.

This PR can be automatically cherry-picked to the 4.1 branch, but a dedicated PR is required for 4.0 and earlier due to conflicts (only minor conflicts exist between 4.0 and 4.1).

The version numbers after #if MAC_OS_X_VERSION_MIN_REQUIRED correspond to exactly the version in which those features become deprecated and therefore stop compiling when warnings are enabled.

I tested with up to macOS 26.5, and the only remaining problem with going that far is CGWindowListCreateImageFromArray which is deprecated as of macOS 15.0. This will require migration to ScreenCaptureKit.

This PR can be considered a further backport of PR #122564.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant