-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 more CLI flags for wasm features #917
Add more CLI flags for wasm features #917
Conversation
This commit adds a few more flags to enable wasm features via the CLI, mirroring the existing `--enable-simd` flag: * `--enable-reference-types` * `--enable-multi-value` * `--enable-threads` * `--enable-bulk-memory` Additionally the bulk memory feature is now automatically enabled if `reference-types` or `threads` are enabled since those two proposals largely depend on `bulk-memory`.
Should we have an |
Sounds good to me! Added now |
+1 from me |
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.
👍 Just some comment suggestions. The doc comments for the new options are user-facing, so those got special attention for consistency. Please feel free to resolve the review comments if you don't like the suggestions.
Co-Authored-By: Peter Huene <peterhuene@protonmail.com>
Co-Authored-By: Peter Huene <peterhuene@protonmail.com>
Some of this originated in bytecodealliance#917 but nowadays it shouldn't be necessary to control proposals like this. Instead it's probably best nowadays to throw configuration at `wasmparser` and use its definition of features to determine whether constructs make sense or not. This reduces the amount of bits and pieces Wasmtime has to do and avoids interactions such as bytecodealliance#9622. Closes bytecodealliance#9622
Some of this originated in bytecodealliance#917 but nowadays it shouldn't be necessary to control proposals like this. Instead it's probably best nowadays to throw configuration at `wasmparser` and use its definition of features to determine whether constructs make sense or not. This reduces the amount of bits and pieces Wasmtime has to do and avoids interactions such as bytecodealliance#9622. Closes bytecodealliance#9622
Some of this originated in #917 but nowadays it shouldn't be necessary to control proposals like this. Instead it's probably best nowadays to throw configuration at `wasmparser` and use its definition of features to determine whether constructs make sense or not. This reduces the amount of bits and pieces Wasmtime has to do and avoids interactions such as #9622. Closes #9622
This commit adds a few more flags to enable wasm features via the CLI,
mirroring the existing
--enable-simd
flag:--enable-reference-types
--enable-multi-value
--enable-threads
--enable-bulk-memory
Additionally the bulk memory feature is now automatically enabled if
reference-types
orthreads
are enabled since those two proposalslargely depend on
bulk-memory
.