@@ -615,22 +615,6 @@ function(_add_swift_lipo_target target output)
615
615
endif ()
616
616
endfunction ()
617
617
618
- # After target 'dst_target' is built from its own object files, merge the
619
- # contents of 'src_target' into it. 'dst_target' and 'src_target' must be
620
- # static-library targets.
621
- function (_target_merge_static_library dst_target src_target )
622
- add_dependencies ("${dst_target} " "${src_target} " )
623
- set (unpack_dir "${CMAKE_BINARY_DIR} /tmp/unpack/${dst_target} " )
624
- add_custom_command (TARGET "${dst_target} " POST_BUILD
625
- COMMAND "${CMAKE_COMMAND} " -E make_directory "${unpack_dir} "
626
- COMMAND pushd "${unpack_dir} "
627
- COMMAND "${CMAKE_AR} " -x "$<TARGET_FILE:${src_target} >"
628
- COMMAND "${CMAKE_AR} " -r "$<TARGET_FILE:${dst_target} >" ./*.o
629
- COMMAND popd
630
- COMMAND "${CMAKE_COMMAND} " -E remove_directory "${unpack_dir} "
631
- )
632
- endfunction ()
633
-
634
618
# Add a single variant of a new Swift library.
635
619
#
636
620
# Usage:
@@ -1123,15 +1107,6 @@ function(_add_swift_library_single target name)
1123
1107
LINK_FLAGS " ${link_flags} -L${SWIFTSTATICLIB_DIR} /${SWIFTLIB_SINGLE_SUBDIR} -L${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /../lib/swift/${SWIFTLIB_SINGLE_SUBDIR} -L${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /../lib/swift/${SWIFT_SDK_${SWIFTLIB_SINGLE_SDK} _LIB_SUBDIR}" )
1124
1108
target_link_libraries ("${target_static} " PRIVATE
1125
1109
${SWIFTLIB_SINGLE_PRIVATE_LINK_LIBRARIES} )
1126
-
1127
- if ("${name} " STREQUAL "swiftCore" )
1128
- # Have libswiftCore.a include the contents of the private libraries it
1129
- # depends on, so statically linking clients don't have to know about
1130
- # them.
1131
- foreach (private_link_library ${SWIFTLIB_SINGLE_PRIVATE_LINK_LIBRARIES} )
1132
- _target_merge_static_library ("${target_static} " "${private_link_library} " )
1133
- endforeach ()
1134
- endif ()
1135
1110
endif ()
1136
1111
1137
1112
# Do not add code here.
0 commit comments