File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -333,9 +333,17 @@ foreach(SDK ${SWIFT_SDKS})
333
333
list (APPEND test_dependencies "touch-covering-tests" )
334
334
endif ()
335
335
336
- list (APPEND test_dependencies
337
- "swiftStdlibCollectionUnittest-${SWIFT_SDK_${SDK} _LIB_SUBDIR}"
338
- "swiftStdlibUnicodeUnittest-${SWIFT_SDK_${SDK} _LIB_SUBDIR}" )
336
+ # Keep in sync with stdlib/private/CMakeLists.txt: the private stdlib
337
+ # targets all rely on the SDK overlay being available.
338
+ if (SWIFT_BUILD_SDK_OVERLAY
339
+ OR (SWIFT_BUILD_TEST_SUPPORT_MODULES
340
+ AND NOT SWIFT_BUILD_DYNAMIC_SDK_OVERLAY_default
341
+ AND (SWIFT_ENABLE_REFLECTION
342
+ OR NOT SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS )))
343
+ list (APPEND test_dependencies
344
+ "swiftStdlibCollectionUnittest-${SWIFT_SDK_${SDK} _LIB_SUBDIR}"
345
+ "swiftStdlibUnicodeUnittest-${SWIFT_SDK_${SDK} _LIB_SUBDIR}" )
346
+ endif ()
339
347
340
348
set (validation_test_dependencies )
341
349
You can’t perform that action at this time.
0 commit comments