When swift-foundation builds within the toolchain, the collections module name will be _FoundationCollections instead of separate OrderedCollections/_RopeModule modules. This change prepares for the toolchain build by conditionalizing between CollectionsInternal for FOUNDATION_FRAMEWORK builds, _RopeModule/OrderedCollections for SPM builds, and _FoundationCollections for toolchain builds.
When swift-foundation builds within the toolchain, the collections module name will be
_FoundationCollections
instead of separateOrderedCollections
/_RopeModule
modules. This change prepares for the toolchain build by conditionalizing betweenCollectionsInternal
forFOUNDATION_FRAMEWORK
builds,_RopeModule
/OrderedCollections
for SPM builds, and_FoundationCollections
for toolchain builds.