From 6bf185920bd6831efc151d7d4158d6390006c50b Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 16 May 2024 14:44:58 +1000 Subject: [PATCH] [ORC] Support visionOS in LC_BUILD_VERSIONs for JITDylibs. rdar://127846581 --- llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp index 2b397b2d48e7d3..b477a48af29068 100644 --- a/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp +++ b/llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp @@ -277,6 +277,10 @@ MachOPlatform::HeaderOptions::BuildVersionOpts::fromTriple(const Triple &TT, Platform = TT.isSimulatorEnvironment() ? MachO::PLATFORM_WATCHOSSIMULATOR : MachO::PLATFORM_WATCHOS; break; + case Triple::XROS: + Platform = TT.isSimulatorEnvironment() ? MachO::PLATFORM_XROS_SIMULATOR + : MachO::PLATFORM_XROS; + break; default: return std::nullopt; }