diff --git a/scripts/toolchains/osx.cmake b/scripts/toolchains/osx.cmake index 2989588b15d070..6b37425d15e0e9 100644 --- a/scripts/toolchains/osx.cmake +++ b/scripts/toolchains/osx.cmake @@ -44,9 +44,6 @@ if(NOT _VCPKG_OSX_TOOLCHAIN) if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin") if(CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR) set(CMAKE_CROSSCOMPILING OFF CACHE STRING "") - elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "ARM64") - # arm64 macOS can run x64 binaries - set(CMAKE_CROSSCOMPILING OFF CACHE STRING "") endif() if(NOT DEFINED CMAKE_SYSTEM_VERSION) diff --git a/scripts/toolchains/windows.cmake b/scripts/toolchains/windows.cmake index 6520329f2373bd..793d015bb7251f 100644 --- a/scripts/toolchains/windows.cmake +++ b/scripts/toolchains/windows.cmake @@ -43,12 +43,6 @@ if(NOT _VCPKG_WINDOWS_TOOLCHAIN) if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") if(CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR) set(CMAKE_CROSSCOMPILING OFF CACHE STRING "") - elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86") - # any of the four platforms can run x86 binaries - set(CMAKE_CROSSCOMPILING OFF CACHE STRING "") - elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "ARM64") - # arm64 can run binaries of any of the four platforms after Windows 11 - set(CMAKE_CROSSCOMPILING OFF CACHE STRING "") endif() if(NOT DEFINED CMAKE_SYSTEM_VERSION)