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

Enable macOS universal builds #52

Merged
merged 3 commits into from
Aug 28, 2023
Merged

Conversation

amxfonseca
Copy link
Contributor

This PR enables universal binaries for the macOS build. This way you are able to run blisp on newer machines, without having to rely on Rosetta 2.

The change is quite simple, since CMake already exposes a variable that provided such functionality.

This PR sets the CMAKE_OSX_ARCHITECTURES to enable both x86_64 and arm64 builds on a single binary. This options is already ignored for the remaining platforms, so we don't need to conditionally set it.

Alternatively we can also manually provide this setting via the command line. That way we can keep the legacy build running as it is, and create a separate build job that outputs a universal artefact. But fat binaries are well supported on all versions of macOS, so I don't think such options is needed.

@amxfonseca
Copy link
Contributor Author

Thanks for enabling the workflows @gamelaster

This hopefully also solves issue #34

Even though the OP of that issue was having a compilation error. I managed to compile it locally without issues, and the same with the Github action. So I am not sure if that issue is still present.

@gamelaster gamelaster merged commit 7a85414 into pine64:master Aug 28, 2023
6 checks passed
@gamelaster
Copy link
Member

@amxfonseca thank you very much for this, I am sure this will be helpful.

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

Successfully merging this pull request may close these issues.

2 participants