Skip to content

Fix #5192 - enable version(Apple) on iOS, tvOS, watchOS, and visionOS - #5195

Merged
kinke merged 1 commit into
ldc-developers:masterfrom
niy-ati:fix-5192-version-apple
Jul 18, 2026
Merged

kinke merged 1 commit into
ldc-developers:masterfrom
niy-ati:fix-5192-version-apple

Conversation

@niy-ati

@niy-ati niy-ati commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Enables version(Apple) for iOS, TvOS, and WatchOS triples (same as MacOSX), matching the spec.
  • Adds XROS handling with version(VisionOS) and version(Apple).
  • Adds tests/compilable/gh5192.d.

Fixes #5192

Test plan

  • Code review against existing MacOSX / iOS version setup in driver/main.cpp.
  • New lit test (requires target_AArch64) compiles for ios/tvos/watchos/xros triples with version(Apple).
  • CI

…, and visionOS

Per the language spec, version(Apple) covers OSX/iOS/TVOS/WatchOS/VisionOS.
MacOSX already set it; the other Apple OS triples did not. Also define
version(VisionOS) for the XROS triple.
@niy-ati niy-ati closed this Jul 18, 2026
@niy-ati niy-ati reopened this Jul 18, 2026

@kinke kinke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kinke
kinke merged commit e4726c2 into ldc-developers:master Jul 18, 2026
20 of 38 checks passed
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.

version(Apple) is not enabled on iOS

2 participants