mirror of
https://github.com/apple/swift-crypto
synced 2026-11-24 04:37:48 +00:00
### Motivation: We're using `#if swift(...)` in some places, which breaks builds using Swift 5 language mode with Swift 6.3+ compilers. ### Modifications: - Check `compiler(<6.4)` instead of `swift(<6.4)`. - Use `@_lifetime(self: copy self)` on the setter, which 6.2, 6.3, and 6.4 all accept. ### Result: Build succeeds when compiled with `-Xswiftc -swift-version -Xswiftc 5` on 6.2, 6.3, and 6.4.