Skip to content

Commit

Permalink
set ARCHS when no archs
Browse files Browse the repository at this point in the history
  • Loading branch information
3d4m-volodymyr committed Jun 24, 2023
1 parent be52e8a commit 861e55d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ios.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,20 @@ elseif(PLATFORM_INT STREQUAL "WATCHOS")
endif()
elseif(PLATFORM_INT STREQUAL "SIMULATOR_XROS")
set(SDK_NAME xrsimulator)
set(APPLE_TARGET_TRIPLE_INT ${ARCHS_SPLIT}-apple-xrsimulator${DEPLOYMENT_TARGET})
if(NOT ARCHS)
set(ARCHS arm64)
set(APPLE_TARGET_TRIPLE_INT arm64-apple-xrsimulator${DEPLOYMENT_TARGET})
else()
set(APPLE_TARGET_TRIPLE_INT ${ARCHS_SPLIT}-apple-xrsimulator${DEPLOYMENT_TARGET})
endif()
elseif(PLATFORM_INT STREQUAL "XROS")
set(SDK_NAME xros)
set(APPLE_TARGET_TRIPLE_INT ${ARCHS_SPLIT}-apple-xros${DEPLOYMENT_TARGET})
if(NOT ARCHS)
set(ARCHS arm64)
set(APPLE_TARGET_TRIPLE_INT arm64-apple-xros${DEPLOYMENT_TARGET})
else()
set(APPLE_TARGET_TRIPLE_INT ${ARCHS_SPLIT}-apple-xros${DEPLOYMENT_TARGET})
endif()
elseif(PLATFORM_INT STREQUAL "WATCHOSCOMBINED")
set(SDK_NAME watchos)
if(MODERN_CMAKE)
Expand Down

0 comments on commit 861e55d

Please sign in to comment.