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

Universal binaries for macOS #17

Closed
robbert-vdh opened this issue Jul 20, 2022 · 0 comments
Closed

Universal binaries for macOS #17

robbert-vdh opened this issue Jul 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@robbert-vdh
Copy link
Owner

Creating this issue as a reminder for myself to implement this. Cargo does not support universal binaries out of the box (rust-lang/cargo#8875) which is why I haven't added this yet, but adding them should not be as I initially thought. This would involve a new build flag that builds for both the native target and for the 'other' target (either x86_64-apple-darwin or aarch64-apple-darwin), and then replaces the binary in target/{debug,release} with a lipo'd version before continuing. I've done something similar in clap-validator here: https://github.com/robbert-vdh/clap-validator/blob/6386b97cc8eafc7c9439550ddf27acaa1700bfe5/.github/workflows/build.yml#L128

@robbert-vdh robbert-vdh added the enhancement New feature or request label Jul 20, 2022
5eqn pushed a commit to 5eqn/nih-plug that referenced this issue Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant