Skip to content

Commit

Permalink
toolchains: Restore original intention of CMAKE_CROSSCOMPILING
Browse files Browse the repository at this point in the history
  • Loading branch information
WangWeiLin-MV committed Aug 26, 2024
1 parent 509f71e commit 60671a8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/toolchains/osx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 60671a8

Please sign in to comment.