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