@@ -82,48 +82,9 @@ list(APPEND swift_runtime_library_compile_flags -I${SWIFT_SOURCE_DIR}/stdlib/inc
82
82
83
83
set (sdk "${SWIFT_HOST_VARIANT_SDK} " )
84
84
if (SWIFT_BUILD_STATIC_STDLIB AND "${sdk} " STREQUAL "LINUX" )
85
- list (REMOVE_ITEM swift_runtime_sources ImageInspectionELF.cpp )
86
85
set (static_binary_lnk_file_list )
87
86
string (TOLOWER "${sdk} " lowercase_sdk )
88
87
89
- # These two libraries are only used with the static swiftcore
90
- add_swift_target_library (swiftImageInspectionShared STATIC
91
- ImageInspectionELF.cpp
92
- C_COMPILE_FLAGS ${swift_runtime_library_compile_flags}
93
- LINK_FLAGS ${swift_runtime_linker_flags}
94
- SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
95
- INSTALL_IN_COMPONENT stdlib )
96
-
97
- foreach (arch IN LISTS SWIFT_SDK_${sdk}_ARCHITECTURES )
98
- set (FragileSupportLibrary swiftImageInspectionShared-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch} )
99
- set (LibraryLocation ${SWIFTSTATICLIB_DIR} /${lowercase_sdk}/${arch} )
100
- add_custom_command_target (swift_image_inspection_${arch}_static
101
- COMMAND
102
- "${CMAKE_COMMAND} " -E copy $< TARGET_FILE:${FragileSupportLibrary} > ${LibraryLocation}
103
- OUTPUT
104
- "${LibraryLocation} /${CMAKE_STATIC_LIBRARY_PREFIX} swiftImageInspectionShared${CMAKE_STATIC_LIBRARY_SUFFIX} "
105
- DEPENDS
106
- ${FragileSupportLibrary} )
107
- add_dependencies (stdlib ${FragileSupportLibrary} )
108
- swift_install_in_component (FILES $< TARGET_FILE:${FragileSupportLibrary} >
109
- DESTINATION "lib/swift_static/${lowercase_sdk} /${arch} "
110
- COMPONENT stdlib )
111
- endforeach ()
112
-
113
- set (FragileSupportLibraryPrimary swiftImageInspectionShared-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${SWIFT_PRIMARY_VARIANT_ARCH} )
114
- set (LibraryLocationPrimary ${SWIFTSTATICLIB_DIR} /${lowercase_sdk} )
115
- add_custom_command_target (swift_image_inspection_static_primary_arch
116
- COMMAND
117
- "${CMAKE_COMMAND} " -E copy $< TARGET_FILE:${FragileSupportLibraryPrimary} > ${LibraryLocationPrimary}
118
- OUTPUT
119
- "${LibraryLocationPrimary} /${CMAKE_STATIC_LIBRARY_PREFIX} swiftImageInspectionShared${CMAKE_STATIC_LIBRARY_SUFFIX} "
120
- DEPENDS
121
- ${FragileSupportLibraryPrimary} )
122
- add_dependencies (stdlib ${FragileSupportLibraryPrimary} )
123
- swift_install_in_component (FILES $< TARGET_FILE:${FragileSupportLibraryPrimary} >
124
- DESTINATION "lib/swift_static/${lowercase_sdk} "
125
- COMPONENT stdlib )
126
-
127
88
# Generate the static-executable-args.lnk file used for ELF systems (eg linux)
128
89
set (linkfile "${lowercase_sdk} /static-executable-args.lnk" )
129
90
add_custom_command_target (swift_static_binary_${sdk}_args
@@ -141,18 +102,6 @@ if(SWIFT_BUILD_STATIC_STDLIB AND "${sdk}" STREQUAL "LINUX")
141
102
DESTINATION "lib/swift_static/${lowercase_sdk} "
142
103
COMPONENT stdlib )
143
104
add_custom_target (static_binary_magic ALL DEPENDS ${static_binary_lnk_file_list} )
144
- foreach (arch IN LISTS SWIFT_SDK_LINUX_ARCHITECTURES )
145
- add_dependencies (static_binary_magic ${swift_image_inspection_${arch}_static} )
146
- endforeach ()
147
- add_dependencies (static_binary_magic ${swift_image_inspection_static_primary_arch} )
148
- add_dependencies (stdlib static_binary_magic )
149
-
150
- add_swift_target_library (swiftImageInspectionSharedObject OBJECT_LIBRARY
151
- ImageInspectionELF.cpp
152
- C_COMPILE_FLAGS ${swift_runtime_library_compile_flags}
153
- LINK_FLAGS ${swift_runtime_linker_flags}
154
- SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
155
- INSTALL_IN_COMPONENT never_install )
156
105
endif ()
157
106
158
107
add_swift_target_library (swiftRuntime OBJECT_LIBRARY
@@ -281,7 +230,6 @@ foreach(sdk ${SWIFT_CONFIGURED_SDKS})
281
230
-ldl
282
231
-lpthread
283
232
-lswiftCore
284
- -lswiftImageInspectionShared
285
233
${libicu_i18n_a}
286
234
${libicu_uc_a}
287
235
${libicu_data_a}
0 commit comments