Skip to content

Commit 6bf1859

Browse files
committed
[ORC] Support visionOS in LC_BUILD_VERSIONs for JITDylibs.
rdar://127846581
1 parent 487b43c commit 6bf1859

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/ExecutionEngine/Orc/MachOPlatform.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ MachOPlatform::HeaderOptions::BuildVersionOpts::fromTriple(const Triple &TT,
277277
Platform = TT.isSimulatorEnvironment() ? MachO::PLATFORM_WATCHOSSIMULATOR
278278
: MachO::PLATFORM_WATCHOS;
279279
break;
280+
case Triple::XROS:
281+
Platform = TT.isSimulatorEnvironment() ? MachO::PLATFORM_XROS_SIMULATOR
282+
: MachO::PLATFORM_XROS;
283+
break;
280284
default:
281285
return std::nullopt;
282286
}

0 commit comments

Comments
 (0)