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

Support for building macOS universal binaries? #40

Open
Absolucy opened this issue Dec 7, 2020 · 2 comments
Open

Support for building macOS universal binaries? #40

Absolucy opened this issue Dec 7, 2020 · 2 comments

Comments

@Absolucy
Copy link

Absolucy commented Dec 7, 2020

Hi, does this crate support dual ARM64/x86_64 binaries for macOS Big Sur, using the aarch64-apple-darwin and x86_64-apple-darwin targets?

@jfro
Copy link

jfro commented Jan 14, 2021

I've used it for M1 + intel builds, seems to work OK!

You do have to take care if you're building 1 rust library for iOS & macOS since it builds to same path. You also can't have a single static lib with all archs.

@Absolucy
Copy link
Author

Absolucy commented Feb 21, 2021

Thing is, this only builds staticlibs, but with macOS, you'll mainly be building executables.

❯ cargo lipo --release --targets x86_64-apple-darwin,aarch64-apple-darwin
[ERROR cargo_lipo] Did not find any packages with a `staticlib` target, considered []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants