Skip to content

MacOs detection is broken #402

Closed
Closed

Description

@gchatelet

The current code wrongly detects CPU_FEATURES_OS_MACOS and CPU_FEATURES_OS_IPHONE.
The documentation states that TARGET_OS_OSX and TARGET_OS_IPHONE are always defined and set to 0 or 1.
So we should test for the value instead of the presence.
As of today, both CPU_FEATURES_OS_MACOS and CPU_FEATURES_OS_IPHONE are always defined when targeting an Apple device.

Activity

  1. self-assigned this
    on Aug 27, 2025
  2. added
    bug
    on Aug 27, 2025
  3. added theissue type on Aug 27, 2025
  4. added a commit that references this issue on Aug 27, 2025
    f7fe16f
  5. added this to the v0.11 milestone on Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions