Skip to content

Commit 11c9184

Browse files
authored
Use SWIFT_SDK_${sdk}_OBJECT_FORMAT to choose whether to use lipo and multi-arch builds
1 parent 2cb4041 commit 11c9184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ function(_add_swift_lipo_target)
501501
list(APPEND source_binaries $<TARGET_FILE:${source_target}>)
502502
endforeach()
503503

504-
if(${LIPO_SDK} IN_LIST SWIFT_APPLE_PLATFORMS)
504+
if("${SWIFT_SDK_${LIPO_SDK}_OBJECT_FORMAT}" STREQUAL "MACHO")
505505
if(LIPO_CODESIGN)
506506
set(codesign_command COMMAND "codesign" "-f" "-s" "-" "${LIPO_OUTPUT}")
507507
endif()

0 commit comments

Comments
 (0)