-
Notifications
You must be signed in to change notification settings - Fork 74
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 universal binaries on macOS #932
Comments
Is there any news on this? If not universal binaries, does/will mull ship binaries for Mac arm64? The current release is only x86_64, so trying to pass the plugin to clang on my M1 Mac fails because clang apparently can't open the plugin. Do I need to build mull from source myself? |
Hi @benthevining, thank you for bringing this up.
We don't ship universal binaries yet, but there is no technical limitation in doing so. I'll see if I can cut a new release soon.
I think it is the best option to build mull on your own on the new Apple Silicon. Currently, we do no sign binaries on macOS, so even if we ship a universal binary, you'd then have to codesign it locally (perhaps with an ad-hoc certificate). |
@benthevining I realized in the end why we don't do universal binaries: we are relying on LLVM from homebrew which is not universal itself, so we can't easily make mull a universal binary as well. Until #957 is not resolved, I'll update the docs suggesting/warning about precompiled macOS binaries on Apple Silicon hardware. |
ohhh I see. That's a shame. I would really appreciate some docs on building mull for M1, since I haven't been able to get it working (maybe because of the Homebrew LLVM issue?) |
@benthevining, what doesn't work for you on M1? I'm using M1 as my main development machine, so I can certainly say that building Mull works there. But perhaps the instructions are missing something important. |
I ended up adding support for universal binaries by teaching mull to only consider one slice from the universal binary. The slice is chosen on which version of mull-runner is running (e.g. @benthevining it doesn't address your use case as it's slightly different from the topic of this issue. If you still have issues with Mull on Apple Silicon - please, consider opening a separate issue. |
Thanks! I'll try again on my M1 machine and let you know if I have any issues. |
Currently,
mull-cxx
will extract doubled bitcode (e.g. for x96 and arm64) andmull-runner
fails to read mutants from universal binary.Steps to reproduce:
The text was updated successfully, but these errors were encountered: