Skip to content

Commit b2d7fb9

Browse files
authored
Merge pull request #14937 from bob-wilson/rdar37710244-4.1
SR-7038: cherry-pick the remaining fixes for Swift 4.1
2 parents 0db5a22 + 6249b63 commit b2d7fb9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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

utils/static-executable-args.lnk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-static
22
-lswiftCore
3+
-lswiftImageInspectionShared
34
-Xlinker
45
--defsym=__import_pthread_self=pthread_self
56
-Xlinker

0 commit comments

Comments
 (0)