Skip to content

What is the correct target name for macOS? #760

Open
@zw963

Description

More details, check discuss on luislavena/magic-haversack#3 (comment)

document said x86_64-darwin, there is no -apple- in the middle for the macOS target

but, crystal compiler output different result on the macOS:

$ crystal version
Crystal 1.12.1 (2024-04-11)

LLVM: 18.1.4
Default target: aarch64-apple-darwin23.4.0

We need a consistent name to follow, although, i am not using macOS.

Activity

straight-shoota

straight-shoota commented on Apr 29, 2024

@straight-shoota
Member

AFAIU there is no single "correct" one. So this cannot be done.

Target triples are not very standardized and people use different combinations referring to the same platform. So different names such as x86_64-darwin, x86_64-apple-darwin, x86_64-apple-macos or x86_64-macosx-darwin all have the same meaning. Maybe some of them is preferrable over others, but all are correct and need to be supported.

zw963

zw963 commented on Apr 29, 2024

@zw963
ContributorAuthor

Thanks for reply.

But, why not just select one of them, both mention in the document and crystal version output?

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @straight-shoota@zw963

      Issue actions

        What is the correct target name for macOS? · Issue #760 · crystal-lang/crystal-book