File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1753,14 +1753,18 @@ function(add_swift_library name)
17531753 # Add Swift standard library targets as dependencies to the top-level
17541754 # convenience target.
17551755 if (SWIFTLIB_TARGET_LIBRARY)
1756+ set (FILTERED_UNITTESTS
1757+ swiftStdlibCollectionUnittest
1758+ swiftStdlibUnicodeUnittest)
1759+
17561760 foreach (arch ${SWIFT_SDK_${sdk} _ARCHITECTURES})
17571761 set (VARIANT_SUFFIX "-${SWIFT_SDK_${sdk} _LIB_SUBDIR}-${arch} " )
1758- if (TARGET "swift-stdlib${VARIANT_SUFFIX} " AND TARGET "swift-test-stdlib${VARIANT_SUFFIX} " )
1762+ if (TARGET "swift-stdlib${VARIANT_SUFFIX} " AND
1763+ TARGET "swift-test-stdlib${VARIANT_SUFFIX} " )
17591764 add_dependencies ("swift-stdlib${VARIANT_SUFFIX} "
17601765 ${lipo_target}
17611766 ${lipo_target_static} )
1762- if ((NOT "${name} " STREQUAL "swiftStdlibCollectionUnittest" ) AND
1763- (NOT "${name} " STREQUAL "swiftStdlibUnicodeUnittest" ))
1767+ if (NOT "${name} " IN_LIST FILTERED_UNITTESTS)
17641768 add_dependencies ("swift-test-stdlib${VARIANT_SUFFIX} "
17651769 ${lipo_target}
17661770 ${lipo_target_static} )
You can’t perform that action at this time.
0 commit comments