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

LLVM/Clang currently lack support for Apple's visionOS ("xros" platform in triples) #77674

Closed
allevato opened this issue Jan 10, 2024 · 8 comments
Labels
llvm Umbrella label for LLVM issues

Comments

@allevato
Copy link

allevato commented Jan 10, 2024

With Apple having released Xcode 15.2 GM this week, it would benefit folks who build other language tooling with LLVM/Clang using this repository to have support for the xros operating system in target triples (and whatever similar logic is needed in Clang to support XROS.platform and XRSimulator.platform).

Currently only Xcode's compilers support it, so any attempt to build tools with llvm/llvm-project that need to process xros triples fail unless support for the OS is manually patched in.

@github-actions github-actions bot added the clang Clang issues not falling into any other category label Jan 10, 2024
@tkremenek
Copy link
Contributor

On the Apple side we are actively working on this, and hope to have patches up soon.

@andrewrk
Copy link
Member

Why is it called "xros" in the triple?

@Rexicon226
Copy link

Rexicon226 commented Jan 10, 2024

Why is it called "xros" in the triple?

This was the internal initial development name given to it, before being changed to visionOS "last minute" iirc. However it might have only been changed to visionOS on the outside, with internals still using "xros"?

@cyndyishida
Copy link
Member

Initial support is up for review at: #77707
We're working on follow-up patches and can close out this issue once those are merged.

@allevato
Copy link
Author

Thank you @cyndyishida !

@EugeneZelenko EugeneZelenko added llvm Umbrella label for LLVM issues and removed clang Clang issues not falling into any other category labels Jan 11, 2024
@JDevlieghere
Copy link
Member

Cyndy landed the Mach-O support (#78373) and I've merged support for visionos in the clang driver (#78392) and lldb (#78389). I believe this covers the platform so I'm going to mark this as resolved.

@arielttt0
Copy link

does the lld linker support linking of xros aswell? because when i try for example enter: lld -arch arm64 -platform_version xros 1.0.0 1.0 i get "malformed platform: xros"

@cyndyishida
Copy link
Member

does the lld linker support linking of xros aswell? because when i try for example enter: lld -arch arm64 -platform_version xros 1.0.0 1.0 i get "malformed platform: xros"

Looks like it was added about 3 weeks ago. #83031 If you're seeing issues on TOT, please file an additional issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
llvm Umbrella label for LLVM issues
Projects
None yet
Development

No branches or pull requests

8 participants