Skip to content

Add native method to query Mach-O SDK version at runtime#3300

Open
tobiasmelcher wants to merge 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:machos_sdk_version
Open

Add native method to query Mach-O SDK version at runtime#3300
tobiasmelcher wants to merge 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:machos_sdk_version

Conversation

@tobiasmelcher
Copy link
Copy Markdown
Contributor

The macOS runtime can report incorrect OS versions (10.16 instead of actual version) when the executable's linked SDK is too old. Add OS.getMachOSDKVersion() to extract the SDK version from the LC_BUILD_VERSION load command in the main executable's Mach-O header.

This allows SWT to detect the SDK version the running JVM was built against, enabling proper diagnostics for version reporting issues.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

Test Results (macos)

   58 files  ±0     58 suites  ±0   5m 37s ⏱️ - 2m 3s
4 571 tests ±0  4 324 ✅ ±0  247 💤 ±0  0 ❌ ±0 
2 202 runs  ±0  2 138 ✅ ±0   64 💤 ±0  0 ❌ ±0 

Results for commit ad26148. ± Comparison against base commit f33b79e.

♻️ This comment has been updated with latest results.

The macOS runtime can report incorrect OS versions (10.16 instead of
actual version) when the executable's linked SDK is too old. Add
OS.getMachOSDKVersion() to extract the SDK version from the
LC_BUILD_VERSION load command in the main executable's Mach-O header.

This allows SWT to detect the SDK version the running JVM was built
against, enabling proper diagnostics for version reporting issues.
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.

2 participants