-
Notifications
You must be signed in to change notification settings - Fork 418
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
feat: add support for macos aarch64 #1088
Conversation
Hi, It would be good to also update the NPM package with this pull request by adding something like: if (type === "Darwin" && arch === "arm64") {
return "x86_64-apple-darwin";
} |
@pauldorehill I think that's not strictly needed, because |
@d3lm the issue is that the package runs a postinstall script which throws and means none of your other node packages get installed. It's easy enough to just remove it from any of your own packages and just call your local cargo installation, but the problem arises if any of your other node packages take it as a dependancy. You can solve it by using |
Oh gotcha. So if it got installed via a package manager you mean? Yep sure, I can change that too 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! I agree with fixing the npm package would be nice as well
@drager Do you want me to address this in another PR or include it in this PR? |
Include it in this PR if possible |
Ok, I have updated the PR and added support for arm64 when using npm too. |
Hi, @drager, could you make a new release of |
Absolutely! I will try to get this merged tomorrow. |
Yay! Thanks for merging 🥳 |
@drager Are you going to publish a new version today too? |
Can confirm that it works now 🙌 Thanks for getting out a new release <3 |
I'm using mac m1 and I updated version 0.10.2 but this issue is not fixed. It's still "Error: no prebuilt wasm-opt binaries are available for this platform: Unrecognized target!". I have no ideal about this problem. Could anyone help me, please? |
@Sotatek-NguyenNguyen4 are you sure you have an updated version of the wasm-pack? What's the output of |
@vitvakatu Yes, it's exactly version 0.10.2. I don't understand why it doesn't work for me. Have I miss any step by step? |
It's certainly fixed for me too. Did you install |
@Sotatek-NguyenNguyen4 I think something is not right with your installation, perhaps two different versions of I recommend avoiding using system package managers ( |
This PR fixes #913 for MacOS (aarch64) and will download
x86_64-apple-darwin
. Ideally, binaryen would release a native build but until then we can just use the x86 version which works fine on Apple Sillicon.rustfmt
installedcargo fmt
on the code base before submitting