-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[mono][wasi] Optional wasm-opt pass #94804
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue Detailswasm-opt which we already ship as part of the wasm-tools workload can be used to optimize wasi builds as well. We should have an optional step to run it as part of the build.
|
Note that you (.NET) are currently using Clang for linking, which already implicitly runs It can be enabled via e.g. this in <_WasiSdkClangArgs Include="-O2" /> The problem is that currently somewhere in the pipeline .NET either doesn't emit correct
That is, it complains because Wasm uses bulk memory operations but doesn't have a I guess I could report this as a separate issue, but it seems most relevant to this one as it's pretty much the only blocker to using wasm-opt and other similar tools. It's possible to work around that by doing something like |
I'm not sure why the section isn't being generated will take a look. At the moment --enable-bulk-memory and --enable-simd (If you pass WasmEnableSIMD) are the only post MVP features in the wasi build. |
Yeah they're currently passed explicitly, but the thing is that explicitly enabling features from command line really shouldn't be necessary if |
Note that because we now produce WASI components, wasm-opt can't be used on those until WebAssembly/binaryen#6728 |
wasm-opt which we already ship as part of the wasm-tools workload can be used to optimize wasi builds as well. We should have an optional step to run it as part of the build.
The text was updated successfully, but these errors were encountered: