Skip to content

Commit ecf29e6

Browse files
authored
Merge pull request swiftlang#20115 from compnerd/wimplib
2 parents a05dd3e + af8fc10 commit ecf29e6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2002,8 +2002,19 @@ function(add_swift_target_library name)
20022002
FILES "${UNIVERSAL_LIBRARY_NAME}"
20032003
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/${resource_dir}/${resource_dir_sdk_subdir}"
20042004
PERMISSIONS ${file_permissions})
2005-
swift_is_installing_component("${SWIFTLIB_INSTALL_IN_COMPONENT}" is_installing)
2005+
if(sdk STREQUAL WINDOWS)
2006+
foreach(arch ${SWIFT_SDK_WINDOWS_ARCHITECTURES})
2007+
if(TARGET ${name}-windows-${arch}_IMPLIB)
2008+
get_target_property(import_library ${name}-windows-${arch}_IMPLIB IMPORTED_LOCATION)
2009+
swift_install_in_component(${SWIFTLIB_INSTALL_IN_COMPONENT}
2010+
FILES ${import_library}
2011+
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/${resource_dir}/${resource_dir_sdk_subdir}/${arch}"
2012+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
2013+
endif()
2014+
endforeach()
2015+
endif()
20062016

2017+
swift_is_installing_component("${SWIFTLIB_INSTALL_IN_COMPONENT}" is_installing)
20072018
if(NOT is_installing)
20082019
set_property(GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${VARIANT_NAME})
20092020
else()

0 commit comments

Comments
 (0)