-
Notifications
You must be signed in to change notification settings - Fork 490
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: add universal Mac make target #6023
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6023 +/- ##
==========================================
- Coverage 55.90% 55.85% -0.05%
==========================================
Files 482 482
Lines 68436 68436
==========================================
- Hits 38258 38225 -33
- Misses 27583 27612 +29
- Partials 2595 2599 +4 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! It'd be nice to provide a single binary for Mac OS, and will help with AMD64 deprecations.
217750e
Summary
This adds a new
universal
build target that builds two libsodium libraries, runs themake build
target for two architectures, and then uses lipo to merge the binaries for amd64 and arm64 together.Test Plan
Not sure what is next, or how this would integrate into the release process. The universal binaries are roughly twice the size, but if that's a problem, the build target produces 3 bin directories (bin-darwin-amd64, bin-darwin-arm64, bin-darwin-universal) allowing for different release options.