Skip to content

Commit 05350f8

Browse files
Fix target triple for MAC_CATALYST_UNIVERSAL builds (#222)
* Fix invalid target triple for MAC_UNIVERSAL builds Co-authored-by: William Candillon <[email protected]>
1 parent 2d171c3 commit 05350f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ios.toolchain.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,15 +585,16 @@ elseif(PLATFORM_INT STREQUAL "MAC_UNIVERSAL")
585585
if(NOT ARCHS)
586586
set(ARCHS "x86_64;arm64")
587587
endif()
588-
string(REPLACE ";" "-" ARCHS_SPLIT "${ARCHS}")
589-
set(APPLE_TARGET_TRIPLE_INT ${ARCHS_SPLIT}-apple-macosx${DEPLOYMENT_TARGET})
588+
# For universal builds, don't set target triple - let CMake handle it
589+
# string(REPLACE ";" "-" ARCHS_SPLIT "${ARCHS}")
590+
# set(APPLE_TARGET_TRIPLE_INT ${ARCHS_SPLIT}-apple-macosx${DEPLOYMENT_TARGET})
590591
elseif(PLATFORM_INT STREQUAL "MAC_CATALYST_UNIVERSAL")
591592
set(SDK_NAME macosx)
592593
if(NOT ARCHS)
593594
set(ARCHS "x86_64;arm64")
594595
endif()
595596
string(REPLACE ";" "-" ARCHS_SPLIT "${ARCHS}")
596-
set(APPLE_TARGET_TRIPLE_INT ${ARCHS_SPLIT}-apple-ios${DEPLOYMENT_TARGET}-macabi)
597+
set(APPLE_TARGET_TRIPLE_INT apple-ios${DEPLOYMENT_TARGET}-macabi)
597598
else()
598599
message(FATAL_ERROR "Invalid PLATFORM: ${PLATFORM_INT}")
599600
endif()

0 commit comments

Comments
 (0)