Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/vcpkg/commands.build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,10 @@ namespace vcpkg
{
return m_paths.scripts / "toolchains/windows.cmake";
}
else if (cmake_system_name == "visionOS")
{
return m_paths.scripts / "toolchains/visionos.cmake";
}
else
{
Checks::msg_exit_maybe_upgrade(VCPKG_LINE_INFO,
Expand Down
4 changes: 4 additions & 0 deletions src/vcpkg/platform-expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ namespace vcpkg::PlatformExpression
ios,
qnx,
vxworks,
visionos,

static_link,
static_crt,
Expand Down Expand Up @@ -66,6 +67,7 @@ namespace vcpkg::PlatformExpression
{"ios", Identifier::ios},
{"qnx", Identifier::qnx},
{"vxworks", Identifier::vxworks},
{"visionOS", Identifier::visionos},
{"static", Identifier::static_link},
{"staticcrt", Identifier::static_crt},
{"native", Identifier::native},
Expand Down Expand Up @@ -572,6 +574,8 @@ namespace vcpkg::PlatformExpression
case Identifier::vxworks: return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "VxWorks");
case Identifier::wasm32: return true_if_exists_and_equal("VCPKG_TARGET_ARCHITECTURE", "wasm32");
case Identifier::mips64: return true_if_exists_and_equal("VCPKG_TARGET_ARCHITECTURE", "mips64");
case Identifier::visionos:
return true_if_exists_and_equal("VCPKG_CMAKE_SYSTEM_NAME", "visionOS");
case Identifier::static_link:
return true_if_exists_and_equal("VCPKG_LIBRARY_LINKAGE", "static");
case Identifier::static_crt: return true_if_exists_and_equal("VCPKG_CRT_LINKAGE", "static");
Expand Down
Loading