File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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})
590591elseif (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)
597598else ()
598599 message (FATAL_ERROR "Invalid PLATFORM: ${PLATFORM_INT} " )
599600endif ()
You can’t perform that action at this time.
0 commit comments