Skip to content

MacOS: skip bundled libffi on non-x86_64 #342

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bjia56
Copy link
Contributor

@bjia56 bjia56 commented Sep 27, 2023

When cross compiling for arm64 Macs, the bundled cpython libffi throws an unsupported cpu error. This change makes it so that Mac compilation skips the bundled libffi if a system libffi was requested.

This change also now makes it possible to build universal python binaries for x86_64/arm64, though that also requires pre-compiling dependencies (including libffi) from source for both architectures.

@bjia56
Copy link
Contributor Author

bjia56 commented Sep 27, 2023

I see from the CI tests that this ended up disabling ctypes on regular x86_64 macos, will tweak to restore prior behavior.

@bjia56 bjia56 changed the title MacOS: skip bundled libffi if a system one is provided MacOS: skip bundled libffi on non-x86_64 Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant