mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #75566 from edymtt/edymtt/promote-concurrency-stringprocessing-to-core-libraries
Promote _Concurrency and StringProcessing to core subset of the stdlib
This commit is contained in:
@@ -101,7 +101,7 @@ option(SWIFT_STDLIB_EMIT_API_DESCRIPTORS
|
||||
|
||||
option(SWIFT_STDLIB_BUILD_ONLY_CORE_MODULES
|
||||
"Build only the core subset of the standard library,
|
||||
ignoring additional libraries such as Concurrency, Distributed and StringProcessing.
|
||||
ignoring additional libraries such as Distributed, Observation and Synchronization.
|
||||
This is an option meant for internal configurations inside Apple
|
||||
that need to build the standard libraries in chunks when constructing an SDK"
|
||||
FALSE)
|
||||
|
||||
@@ -269,6 +269,16 @@ if(SWIFT_BUILD_STDLIB)
|
||||
if(SWIFT_BUILD_CLANG_OVERLAYS)
|
||||
add_subdirectory(ClangOverlays)
|
||||
endif()
|
||||
|
||||
if(SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY)
|
||||
add_subdirectory(Concurrency)
|
||||
endif()
|
||||
|
||||
if(SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING)
|
||||
add_subdirectory(RegexParser)
|
||||
add_subdirectory(StringProcessing)
|
||||
add_subdirectory(RegexBuilder)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(SWIFT_BUILD_STDLIB AND NOT SWIFT_STDLIB_BUILD_ONLY_CORE_MODULES)
|
||||
@@ -279,20 +289,10 @@ if(SWIFT_BUILD_STDLIB AND NOT SWIFT_STDLIB_BUILD_ONLY_CORE_MODULES)
|
||||
add_subdirectory(Differentiation)
|
||||
endif()
|
||||
|
||||
if(SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY)
|
||||
add_subdirectory(Concurrency)
|
||||
endif()
|
||||
|
||||
if(SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED)
|
||||
add_subdirectory(Distributed)
|
||||
endif()
|
||||
|
||||
if(SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING)
|
||||
add_subdirectory(RegexParser)
|
||||
add_subdirectory(StringProcessing)
|
||||
add_subdirectory(RegexBuilder)
|
||||
endif()
|
||||
|
||||
if(SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION)
|
||||
add_subdirectory(Observation)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user