@@ -1692,12 +1692,14 @@ function(add_swift_library name)
1692
1692
set (codesign_arg CODESIGN )
1693
1693
endif ()
1694
1694
precondition (THIN_INPUT_TARGETS )
1695
- _add_swift_lipo_target (
1696
- SDK ${sdk}
1697
- TARGET ${lipo_target}
1698
- OUTPUT ${UNIVERSAL_LIBRARY_NAME}
1699
- ${codesign_arg}
1700
- ${THIN_INPUT_TARGETS} )
1695
+ _add_swift_lipo_target (SDK
1696
+ ${sdk}
1697
+ TARGET
1698
+ ${lipo_target}
1699
+ OUTPUT
1700
+ ${UNIVERSAL_LIBRARY_NAME}
1701
+ ${codesign_arg}
1702
+ ${THIN_INPUT_TARGETS} )
1701
1703
1702
1704
# Cache universal libraries for dependency purposes
1703
1705
set (UNIVERSAL_LIBRARY_NAMES_${SWIFT_SDK_${sdk}_LIB_SUBDIR}
@@ -1743,11 +1745,13 @@ function(add_swift_library name)
1743
1745
"${name} -${SWIFT_SDK_${sdk} _LIB_SUBDIR}-static" )
1744
1746
set (UNIVERSAL_LIBRARY_NAME
1745
1747
"${SWIFTSTATICLIB_DIR} /${SWIFT_SDK_${sdk} _LIB_SUBDIR}/${CMAKE_STATIC_LIBRARY_PREFIX}${name}${CMAKE_STATIC_LIBRARY_SUFFIX} " )
1746
- _add_swift_lipo_target (
1747
- SDK ${sdk}
1748
- TARGET ${lipo_target_static}
1749
- OUTPUT "${UNIVERSAL_LIBRARY_NAME} "
1750
- ${THIN_INPUT_TARGETS_STATIC} )
1748
+ _add_swift_lipo_target (SDK
1749
+ ${sdk}
1750
+ TARGET
1751
+ ${lipo_target_static}
1752
+ OUTPUT
1753
+ "${UNIVERSAL_LIBRARY_NAME} "
1754
+ ${THIN_INPUT_TARGETS_STATIC} )
1751
1755
swift_install_in_component ("${SWIFTLIB_INSTALL_IN_COMPONENT} "
1752
1756
FILES "${UNIVERSAL_LIBRARY_NAME} "
1753
1757
DESTINATION "lib${LLVM_LIBDIR_SUFFIX} /swift_static/${resource_dir_sdk_subdir} "
@@ -1760,14 +1764,18 @@ function(add_swift_library name)
1760
1764
# Add Swift standard library targets as dependencies to the top-level
1761
1765
# convenience target.
1762
1766
if (SWIFTLIB_TARGET_LIBRARY )
1767
+ set (FILTERED_UNITTESTS
1768
+ swiftStdlibCollectionUnittest
1769
+ swiftStdlibUnicodeUnittest )
1770
+
1763
1771
foreach (arch ${SWIFT_SDK_${sdk}_ARCHITECTURES} )
1764
1772
set (VARIANT_SUFFIX "-${SWIFT_SDK_${sdk} _LIB_SUBDIR}-${arch} " )
1765
- if (TARGET "swift-stdlib${VARIANT_SUFFIX} " AND TARGET "swift-test-stdlib${VARIANT_SUFFIX} " )
1773
+ if (TARGET "swift-stdlib${VARIANT_SUFFIX} " AND
1774
+ TARGET "swift-test-stdlib${VARIANT_SUFFIX} " )
1766
1775
add_dependencies ("swift-stdlib${VARIANT_SUFFIX} "
1767
1776
${lipo_target}
1768
1777
${lipo_target_static} )
1769
- if ((NOT "${name} " STREQUAL "swiftStdlibCollectionUnittest" ) AND
1770
- (NOT "${name} " STREQUAL "swiftStdlibUnicodeUnittest" ))
1778
+ if (NOT "${name} " IN_LIST FILTERED_UNITTESTS )
1771
1779
add_dependencies ("swift-test-stdlib${VARIANT_SUFFIX} "
1772
1780
${lipo_target}
1773
1781
${lipo_target_static} )
0 commit comments