Skip to content

Commit dbc21e9

Browse files
authored
Add support for visionOS platform (#1681)
1 parent e667bc4 commit dbc21e9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/vcpkg/commands.build.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,10 @@ namespace vcpkg
10231023
{
10241024
return m_paths.scripts / "toolchains/windows.cmake";
10251025
}
1026+
else if (cmake_system_name == "visionOS")
1027+
{
1028+
return m_paths.scripts / "toolchains/ios.cmake";
1029+
}
10261030
else
10271031
{
10281032
Checks::msg_exit_maybe_upgrade(VCPKG_LINE_INFO,

src/vcpkg/platform-expression.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ namespace vcpkg::PlatformExpression
3636
ios,
3737
qnx,
3838
vxworks,
39+
visionos,
3940

4041
static_link,
4142
static_crt,
@@ -68,6 +69,7 @@ namespace vcpkg::PlatformExpression
6869
{"ios", Identifier::ios},
6970
{"qnx", Identifier::qnx},
7071
{"vxworks", Identifier::vxworks},
72+
{"visionos", Identifier::visionos},
7173
{"static", Identifier::static_link},
7274
{"staticcrt", Identifier::static_crt},
7375
{"native", Identifier::native},
@@ -575,6 +577,8 @@ namespace vcpkg::PlatformExpression
575577
case Identifier::vxworks: return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "VxWorks");
576578
case Identifier::wasm32: return true_if_exists_and_equal("VCPKG_TARGET_ARCHITECTURE", "wasm32");
577579
case Identifier::mips64: return true_if_exists_and_equal("VCPKG_TARGET_ARCHITECTURE", "mips64");
580+
case Identifier::visionos:
581+
return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "visionOS");
578582
case Identifier::static_link:
579583
return true_if_exists_and_equal("VCPKG_LIBRARY_LINKAGE", "static");
580584
case Identifier::static_crt: return true_if_exists_and_equal("VCPKG_CRT_LINKAGE", "static");

0 commit comments

Comments
 (0)