Skip to content

Commit 158729c

Browse files
authored
Merge pull request #85541 from compnerd/dependency
test: remove stdlib unittest dependency for tests
2 parents e519e59 + 7ce2692 commit 158729c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,11 @@ foreach(SDK ${SWIFT_SDKS})
474474
list(APPEND test_dependencies "touch-covering-tests")
475475
endif()
476476

477-
list(APPEND test_dependencies
478-
"swiftStdlibCollectionUnittest-${SWIFT_SDK_${SDK}_LIB_SUBDIR}"
479-
"swiftStdlibUnicodeUnittest-${SWIFT_SDK_${SDK}_LIB_SUBDIR}")
477+
if(SWIFT_BUILD_STDLIB)
478+
list(APPEND test_dependencies
479+
"swiftStdlibCollectionUnittest-${SWIFT_SDK_${SDK}_LIB_SUBDIR}"
480+
"swiftStdlibUnicodeUnittest-${SWIFT_SDK_${SDK}_LIB_SUBDIR}")
481+
endif()
480482

481483
set(validation_test_dependencies)
482484

0 commit comments

Comments
 (0)