Skip to content

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

Closed
@allevato

Description

@allevato

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.

Activity

added
clangClang issues not falling into any other category
on Jan 10, 2024
tkremenek

tkremenek commented on Jan 10, 2024

@tkremenek
Contributor

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

andrewrk

andrewrk commented on Jan 10, 2024

@andrewrk
Member

Why is it called "xros" in the triple?

Rexicon226

Rexicon226 commented on Jan 10, 2024

@Rexicon226

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

cyndyishida commented on Jan 11, 2024

@cyndyishida
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

allevato commented on Jan 11, 2024

@allevato
Author

Thank you @cyndyishida !

added
llvmUmbrella label for LLVM issues
and removed
clangClang issues not falling into any other category
on Jan 11, 2024
JDevlieghere

JDevlieghere commented on Jan 18, 2024

@JDevlieghere
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

arielttt0 commented on Mar 18, 2024

@arielttt0

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

cyndyishida commented on Mar 19, 2024

@cyndyishida
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvmUmbrella label for LLVM issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @andrewrk@JDevlieghere@allevato@tkremenek@arielttt0

        Issue actions

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