Skip to content

Commit e802ae0

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 0db5a22 commit e802ae0

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

97+
swift_install_in_component(stdlib
98+
TARGETS swiftImageInspectionShared
99+
DESTINATION "lib/swift_static/${lowercase_sdk}")
100+
97101
# Generate the static-executable-args.lnk file used for ELF systems (eg linux)
98102
set(linkfile "${lowercase_sdk}/static-executable-args.lnk")
99103
add_custom_command_target(swift_static_binary_${sdk}_args

0 commit comments

Comments
 (0)