apple / swift-atomics

Low-level atomic operations for Swift
Apache License 2.0
1.06k stars 50 forks source link

[native] Stop using @_implementationOnly import in package configs #110

Closed lorentey closed 9 months ago

lorentey commented 9 months ago

@_implementationOnly does not work correctly unless Swift’s Library Evolution dialect is enabled — it leads to obscure module loading failures.

There seems to be no way to create a compile-time condition on whether library evolution is enabled, so we need to stop using @_implementationOnly imports in all package configurations.

Resolves #107.

Checklist

lorentey commented 9 months ago

@swift-ci test