-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
wasmer 1.0.0, build with path and compiler flags, update test #68603
Conversation
Thanks, @richiksc! |
🎉 Builds and tests succesfully on ARM CI! |
What are the different options for the |
@carlocab Should we build with the |
|
@carlocab Oh, I didn't know that, sorry! Good to know. |
@carlocab Here is the list of possible options for the These features are enabled by default, unless the
The recommended way to build in Wasmer docs is The So, we are already building with the features listed in A few questions arise:
|
Thanks for the thorough research!
I'd rather not add features that pull in large dependencies unless they're specifically requested by users.
What does the
Do they use |
It compiles in a "single pass", meaning it doesn't make any optimizations. For this compiler, compile time is much faster but execution time is slower. A full explanation of the three compilers can be found here.
Unfortunately, no, they don't use |
If it's part of their default distribution I guess it couldn't hurt to include it.
Let's go with this; the documentation of the |
It uses all versions from a cargo.lock file (I think that's the name) instead of getting the most recent ones. |
That's what I understand too, but looking at |
Unless that commit adds a lockfile |
What about a PR to add a "install-wasmer" task to the Makefile? It would call cargo install with |
To make up for the fact that the PR breaks their build system by stopping it from generating
This sounds good. I think switching to that doesn't need to block this PR, however. Can you open the appropriate PR to update this formula when that has been settled upstream? |
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.
Thanks again for your first contribution to Homebrew, @richiksc! I hope this is the first of many similarly high-quality PRs.
@carlocab Heads up, looks like you forgot to trigger a merge. Thanks for all your help and quick responses! |
maybe we should file a pr to update the |
Thanks @richiksc! |
🤖 A scheduled task has triggered a merge. |
It would be a bad idea to use |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?Created with
brew bump-formula-pr
, then manually edited. There is already a PR for wasmer 1.0.0 (#68341), but without the needed formula changes.wasmer
1.0.0 has moved their cli project into thelib/cli
directory, and now you must specify which compiler wasmer must be built with.cranelift
is the default compiler provided by Wasmer in their release binaries, and supports both ARM64 and x86_64.The output of
wasmer run --invoke
is also much less verbose in Wasmer 1.0.0, so the test assertion had to be updated accordingly.Closes #68341.
@carlocab, you asked me to tag you so you could add the 'CI-force-arm' label and review this.