Skip to content

Conversation

@Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Jul 22, 2025

This patch works around the absence of a fix for
swiftlang/swift#76186 on older Swift compilers.

This patch works around the absence of a fix for
swiftlang/swift#76186 on older Swift
compilers.
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jul 22, 2025
@Lukasa Lukasa merged commit 88b9c9b into apple:main Jul 22, 2025
33 checks passed
@Lukasa Lukasa deleted the cb-avoid-tsan-issue branch July 22, 2025 13:31
aryan-25 added a commit to aryan-25/swift-crypto that referenced this pull request Aug 27, 2025
Motivation:
`swift-crypto` currently fails to compile with TSAN enabled in 5.10 and 6.0 due to a TSAN error stemming from the use of `consuming` in the `finalize()` method of `_CryptoExtras/AES/CMAC`.

Modifications:
Like apple#384, the `consuming finalize()` method in `_CryptoExtras/AES/CMAC` is now wrapped inside a `#if compiler(>=6.1)` condition. A non-consuming variant is used otherwise.

Result:
`swift-crypto` can successfully compile with TSAN enabled in 5.10 and 6.0.
Lukasa pushed a commit that referenced this pull request Aug 27, 2025
### Motivation:
swift-crypto currently fails to compile with TSAN enabled in 5.10 and
6.0 due to a TSAN error stemming from the use of `consuming` in the
`finalize()` method of `_CryptoExtras/AES/CMAC`.

### Modifications:
Like #384, the `consuming finalize()` method in `_CryptoExtras/AES/CMAC`
is now wrapped inside a `#if compiler(>=6.1)` condition. A non-consuming
variant is used otherwise.

### Result:
`swift-crypto` can successfully compile with TSAN enabled in 5.10 and
6.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants