mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-24 04:38:00 +00:00
Motivation: In #263 we took advantage of the addition of the unsafeUninitializedCapacity:initializingWith constructor on String, added in the latest Swift SDKs and Swift versions. Unfortunately, there were a few Xcode releases that shipped with Swift 5.3 but _without_ the macOS 11 SDK. These releases therefore had a 5.3 compiler, but no access to the macOS 11 SDK where the constructor is defined. This means this change regressed builds on those platforms. Modifications: Removed access to the fast-path initializer on Apple platforms in 5.3. The initializer is present and will continue to work on non-Apple platforms. Apple platforms will get access to that initializer from 5.4 onwards. Result: Fewer build issues for users using Xcode 12.0 and 12.1.