Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Atomics can't be used in Swift Playgrounds.app #62

Open
2 tasks done
wtholliday opened this issue Dec 22, 2022 · 2 comments
Open
2 tasks done

Swift Atomics can't be used in Swift Playgrounds.app #62

wtholliday opened this issue Dec 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@wtholliday
Copy link

wtholliday commented Dec 22, 2022

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 #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

  • If possible, I've reproduced the issue using the main branch of this package.
  • I've searched for existing reports of the same issue.

Steps to Reproduce

  1. Download Swift Playgrounds from App Store
  2. Create a new app
  3. File -> Add Package
  4. Enter https://github.com/apple/swift-atomics
  5. 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.

image

@wtholliday wtholliday added the bug Something isn't working label Dec 22, 2022
@rvsrvs
Copy link

rvsrvs commented Mar 5, 2023

actually, i think addressing #55 would fix this as well, but that entails changes that are unlikely to happen.

@lorentey
Copy link
Member

Getting rid of the C module with something along the lines of #74 would likely get rid of these issues. However, this will require some Swift compiler & stdlib work, so it will take time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants