Skip to content

Commit 4df6213

Browse files
authored
[test] Add dependency to the embedded-stdlib (#70215)
When not building `all`, like the `build-script` does in CI, the tests did not have a dependency on `embedded-stdlib`, and those tests will fail to pass if one was using CMake/Ninja to execute the tests after something like `ninja clean`. The dependency is added if the embedded stdlib is being built.
1 parent 77c733c commit 4df6213

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ foreach(SDK ${SWIFT_SDKS})
311311
endif()
312312
endif()
313313

314+
if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND TARGET "embedded-stdlib")
315+
list(APPEND test_dependencies "embedded-stdlib")
316+
endif()
317+
314318
if(NOT "${COVERAGE_DB}" STREQUAL "")
315319
list(APPEND test_dependencies "touch-covering-tests")
316320
endif()

0 commit comments

Comments
 (0)