Skip to content

Commit 590caaa

Browse files
authored
build: install linker files for installed targets (swiftlang#753)
Ensure that we install any linker files for the modules which are required on certain platforms.
1 parent 37cdca9 commit 590caaa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/FoundationMacros/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ install(TARGETS FoundationMacros
5757
ARCHIVE DESTINATION lib/swift/host/plugins
5858
LIBRARY DESTINATION lib/swift/host/plugins
5959
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
60+
install(FILES $<TARGET_LINKER_FILE:FoundationMacros>
61+
DESTINATION lib)

cmake/modules/SwiftFoundationSwiftSupport.cmake

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function(_swift_foundation_install_target module)
5050
install(FILES $<TARGET_PROPERTY:${module},Swift_MODULE_DIRECTORY>/${module_name}.swiftmodule
5151
DESTINATION lib/${swift}/${swift_os}/${module_name}.swiftmodule
5252
RENAME ${SwiftFoundation_MODULE_TRIPLE}.swiftmodule)
53-
53+
install(FILES $<TARGET_LINKER_FILE:${module}>
54+
DESTINATION lib)
5455
endfunction()

0 commit comments

Comments
 (0)