Skip to content

Commit a62cfa0

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 420328b commit a62cfa0

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
@@ -102,6 +102,10 @@ if(SWIFT_BUILD_STATIC_STDLIB AND "${sdk}" STREQUAL "LINUX")
102102
set_target_properties(swiftImageInspectionShared PROPERTIES
103103
ARCHIVE_OUTPUT_DIRECTORY "${SWIFTSTATICLIB_DIR}/${lowercase_sdk}")
104104

105+
swift_install_in_component(stdlib
106+
TARGETS swiftImageInspectionShared
107+
DESTINATION "lib/swift_static/${lowercase_sdk}")
108+
105109
# Generate the static-executable-args.lnk file used for ELF systems (eg linux)
106110
set(linkfile "${lowercase_sdk}/static-executable-args.lnk")
107111
add_custom_command_target(swift_static_binary_${sdk}_args

0 commit comments

Comments
 (0)