Skip to content

Commit

Permalink
set triple for simulator in arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Jun 20, 2022
1 parent 160eda1 commit e338597
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/StaticBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ set(cross_rc "")

if(CMAKE_CROSSCOMPILING)
if(APPLE_TARGET_TRIPLE)
if(PLATFORM MATCHES "SIMULATORARM64")
set(APPLE_TARGET_TRIPLE aarch64-apple-ios)
endif()
set(cross_host "--host=${APPLE_TARGET_TRIPLE}")
else()
set(cross_host "--host=${ARCH_TRIPLET}")
Expand Down

0 comments on commit e338597

Please sign in to comment.