File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2002,8 +2002,19 @@ function(add_swift_target_library name)
2002
2002
FILES "${UNIVERSAL_LIBRARY_NAME} "
2003
2003
DESTINATION "lib${LLVM_LIBDIR_SUFFIX} /${resource_dir} /${resource_dir_sdk_subdir} "
2004
2004
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 ()
2006
2016
2017
+ swift_is_installing_component ("${SWIFTLIB_INSTALL_IN_COMPONENT} " is_installing )
2007
2018
if (NOT is_installing )
2008
2019
set_property (GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${VARIANT_NAME} )
2009
2020
else ()
You can’t perform that action at this time.
0 commit comments