Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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