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

build error Implicit declaration of function 'OSAtomicCompareAndSwap32Barrier' is invalid in C99 #348

Open
michaelknoch opened this issue Nov 29, 2021 · 1 comment

Comments

@michaelknoch
Copy link
Member

michaelknoch commented Nov 29, 2021

Current behavior

build error Implicit declaration of function 'OSAtomicCompareAndSwap32Barrier' is invalid in C99 when building for apple silicon mac. It works when building for Intel mac via rosetta.

Expected behavior

builds for apple silicon macs

Steps to reproduce

  1. build sample mac app for apple silicon

Screenshots

Screenshot 2021-11-29 at 10 51 32

Environment

  • Device: Mac with M1
  • Xcode: 13.1
  • OS: 12.0.1
  • UIKit Version: master (fc51799)
@ephemer
Copy link
Member

ephemer commented Nov 30, 2021

Yep, saw this too. I think we'll need to update SDL to fix it but for now the workaround is to build for rosetta (esp. because building our UIKit for Mac doesn't make a lot of sense since it's possible to build real UIKit apps for Apple Silicon macs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants