-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add release binary for Mac m1 - apple silicon platform #221
Comments
Hello @jasonleecode , I'm getting this error while trying to cross-compile in my MacBook Air:
I think this might be related to the compatibility issue you are reporting here... Are you experimenting the same issue? have you tried to compile the source code yourself yet? Thanks! |
Hi all -- I was able to build locally on my M1 system, but wanted to improve the situation in general, so I put together a Homebrew formula over at Homebrew/homebrew-core#101491. If I understand their infrastructure correctly, if the PR is accepted, this should mean a binary build ("bottle") will be available for macOS/aarch64 (M1). This seems like a better path than trying to cross-compile a macOS/aarch64 release in the GitHub Actions CI on this repository, since GitHub Actions still (!) does not support M1 runners, and the process in the I'll update here if the Homebrew PR is accepted! |
Thanks @cfallin , much appreciated! Let us know !! |
Based on feedback in Homebrew/homebrew-core#101491 it sounds like they want to avoid shipping a whole separate LLVM build, instead including a package that is just the sysroot and some wrappers that invoke either Homebrew clang or macOS system clang. It appears my macOS system clang (on macOS 12.4 at least) has no I'm unfortunately not well-versed in how to use a custom sysroot -- I seem to be stuck at:
@sunfishcode are there any docs here or elsewhere on how to use the custom sysroot? Also, in general, how do you feel about a |
The Zig toolchain bundles LLVM, clang and wasi-libc as a standalone package, and is already available in Homebrew. Wouldn't a |
@cfallin: Sysroots contain libraries and headers that are "shipped with the OS" in a sense. Some includes and libraries are expected to be "shipped with the compiler" and are not part of the sysroot. libclang_rt.builtins-wasm32.a is built from compiler-rt in the llvm-project tree and is in the "shipped with the compiler" category. In the wasi-sdk build, such libraries and headers are installed in $PREFIX/lib/clang/15.0.0/. A wasi-sdk package in Homebrew that includes wasi-sdk-clang sounds good to me. It would be good to also include at least a wrapper for |
Ah, also:
Yes. wasi-sdk applies no clang patches, so it should work with any sufficiently recent clang that has the WebAssembly backend, and I think it'd be fine to support that here in the wasi-sdk repo. |
Could you plz support Mac m1 - apple silicon platform, and add release binary for it ? Thanks very much.
The text was updated successfully, but these errors were encountered: