Skip to content

Commit 732a216

Browse files
committed
CMake: readd StringProcessing dependency to StdlibUnittest
This reverts commit 4a95275. I remove the dependency looking at the modules that StdlibUnittest directly imports -- but it turns out we import StringProcessing indirectly as a result of importing Foundation from e.g. the underlying Apple SDKs. Addresses rdar://158797152
1 parent 7642d41 commit 732a216

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/private/StdlibUnittest/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ if (SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY)
3737
list(APPEND swift_stdlib_unittest_link_libraries "swift_Concurrency")
3838
list(APPEND swift_stdlib_unittest_modules "_Concurrency")
3939
endif()
40+
if (SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING)
41+
list(APPEND swift_stdlib_unittest_modules "_StringProcessing")
42+
endif()
4043

4144
add_swift_target_library(swiftStdlibUnittest ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
4245
# This file should be listed the first. Module name is inferred from the

0 commit comments

Comments
 (0)