-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add Apple Silicon Support #2
Conversation
Refactor cb.cs to build mac for x86_64 and arm64 Move arch specific build into an <arch> subdirectory Build fat universal binaries from the arch specific libraries Locate arch specific libraries above arch details Depends on XCode 12.2 or greater Details of unversal binaries can be investigated using the `lipo -detailed_info <file` command, See `man lipo`
The diff is best viewed with I built the e_sqlite3 dynamic and static binaries. I briefly tried the cipher libraries, but I am missing some dependencies or I don't know your workflow.... I suspect it will work for you. Here is how I built/tested
I have done no execution testing, but osx-arm64 testing will be enabled in ASP.NET Core before .NET 6 ships 11/2021. It is currently limited by commercial availability of Apple Silicon hardware (to populate test infrastructure). |
Nice. Thanks. |
I have installed XCode 12.2 and run the build scripts, for both e_sqlite3 and e_sqlcipher, and the Mac/arm64 stuff seems to build with no problems. Thanks again. |
Refactor cb.cs to build mac for x86_64 and arm64
Move arch specific build into an subdirectory
Build fat universal binaries from the arch specific libraries
Locate arch specific libraries above arch details
Depends on XCode 12.2 or greater
Details of unversal binaries can be investigated using the
lipo -detailed_info <file>
command, Seeman lipo