Skip to content

Commit 48995b2

Browse files
committed
Restore build and install of the swiftImageInspectionShared library
Commit 0c42b57 ("ELF: restructure image metadata registration") removed the swift_install_in_component lines for both swiftImageInspectionStatic and swiftImageInspectionShared libraries, even though only the former library was removed in that change. As a result, the swiftImageInspectionShared was not being built or installed. This should fix SR-7038. rdar://problem/37710244
1 parent d7f1cdf commit 48995b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/runtime/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ if(SWIFT_BUILD_STATIC_STDLIB AND "${sdk}" STREQUAL "LINUX")
105105
set_target_properties(swiftImageInspectionShared PROPERTIES
106106
ARCHIVE_OUTPUT_DIRECTORY "${SWIFTSTATICLIB_DIR}/${lowercase_sdk}")
107107

108+
swift_install_in_component(stdlib
109+
TARGETS swiftImageInspectionShared
110+
DESTINATION "lib/swift_static/${lowercase_sdk}")
111+
108112
# Generate the static-executable-args.lnk file used for ELF systems (eg linux)
109113
set(linkfile "${lowercase_sdk}/static-executable-args.lnk")
110114
add_custom_command_target(swift_static_binary_${sdk}_args

0 commit comments

Comments
 (0)