Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the correct target name for macOS? #760

Open
zw963 opened this issue Apr 29, 2024 · 2 comments
Open

What is the correct target name for macOS? #760

zw963 opened this issue Apr 29, 2024 · 2 comments
Labels

Comments

@zw963
Copy link
Contributor

zw963 commented Apr 29, 2024

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.

@straight-shoota
Copy link
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
Copy link
Contributor Author

zw963 commented Apr 29, 2024

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants