-
Notifications
You must be signed in to change notification settings - Fork 787
wasm-reduce unintentionally adds a feature #2813
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
Comments
Ah reading the code I see this promising comment: // TODO(tlively): -all should be replaced with an option to use the
// existing feature set, once implemented. So maybe this is expected and we have a plan? |
Hmm, we have an option |
This annoying thing happens:
wasm-reduce
adds-all
to all its commands. It does that so that it can succeed to load all wasm files.-all
, it writes out the DataCount section, becausebulk-memory
has been enabled, and we always emit that section when that feature is enabled.IOW,
wasm-reduce
uses-all
to work around feature errors, but enabling features - even when just reading and writing the wasm - has a side effect of turning the output wasm into actually using features 😢@tlively I hope you'll have a good idea here...
The text was updated successfully, but these errors were encountered: