Swift Atomics can't be used in Swift Playgrounds.app
Swift Atomics can't be used in Swift Playgrounds.app because of a C target. We would like to use Swift Atomics in AudioKit (https://github.com/audiokit/audiokit) and we support Swift Playgrounds.
(Note that this bug is distinct from https://github.com/apple/swift-atomics/issues/55)
Information
- Package version: 1.0.3
- Platform version: 13.1 (22C65)
- Swift version: swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) Target: x86_64-apple-macosx13.0
Checklist
- [x] If possible, I've reproduced the issue using the
mainbranch of this package. - [x] I've searched for existing reports of the same issue.
Steps to Reproduce
- Download Swift Playgrounds from App Store
- Create a new app
- File -> Add Package
- Enter https://github.com/apple/swift-atomics
- Click the play button
Expected behavior
Swift Atomics can be used in Swift Playgrounds.
Actual behavior
Compilation fails because Swift Atomics uses a C target.
actually, i think addressing #55 would fix this as well, but that entails changes that are unlikely to happen.
Getting rid of the C module with something along the lines of https://github.com/apple/swift-atomics/pull/74 would likely get rid of these issues. However, this will require some Swift compiler & stdlib work, so it will take time.