Skip to content

Commit 1d06521

Browse files
committed
Plumb async-ness through StdlibUnittest
This patch plumbs through the ability to run async code in the standard library unittests. The async start-point is `runAllTestsAsync` and must be called from an async context. For now, that means calling through async-main.
1 parent 51a36a6 commit 1d06521

File tree

2 files changed

+372
-1
lines changed

2 files changed

+372
-1
lines changed

stdlib/private/StdlibUnittest/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ add_swift_target_library(swiftStdlibUnittest ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES}
4545
SWIFT_MODULE_DEPENDS_WINDOWS CRT WinSDK
4646
SWIFT_COMPILE_FLAGS ${swift_stdlib_unittest_compile_flags} ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
4747
INSTALL_IN_COMPONENT stdlib-experimental
48-
DARWIN_INSTALL_NAME_DIR "${SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR}")
48+
DARWIN_INSTALL_NAME_DIR "${SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR}"
49+
LINK_LIBRARIES swift_Concurrency)
4950
set_source_files_properties(InspectValue.cpp PROPERTIES COMPILE_FLAGS -std=c++14)
5051

0 commit comments

Comments
 (0)