Skip to content

Fix macOS 26 build: SDK detection, zlib 1.3.1 upgrade#4

Closed
bob-jones-cs wants to merge 2 commits intoCodenameCrew:oldfrom
bob-jones-cs:fix/macos-26-sdk-and-zlib
Closed

Fix macOS 26 build: SDK detection, zlib 1.3.1 upgrade#4
bob-jones-cs wants to merge 2 commits intoCodenameCrew:oldfrom
bob-jones-cs:fix/macos-26-sdk-and-zlib

Conversation

@bob-jones-cs
Copy link

@bob-jones-cs bob-jones-cs commented Mar 2, 2026

Edit: Removed

joshtynjala and others added 2 commits March 1, 2026 21:00
My SDKs directory contains three entries:

MacOSX.sdk
MacOSX26.0.sdk
MacOSX26.sdk

The current SDK version detection in hxcpp is preferring MacOSX26.sdk over MacOSX26.0.sdk. This is causing MACOSX_VER to be set to 26. However, xcodebuild seems to want both major and minor parts of the version to be specified, so MACOSX_VER should be set to 26.0 instead.

This change checks if the current best's minor version is parsed as NaN when the major versions match, which results in a real float value for the minor version to be preferred.
- This commit fixes macOS 15.4 SDK compile problem
@bob-jones-cs bob-jones-cs changed the title Fix macOS 26 (Tahoe) build: SDK detection + zlib 1.3.1 upgrade Fix macOS 26 build: SDK detection, zlib 1.3.1 upgrade Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants