Skip to content
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

Merged

Conversation

alexcrichton
Copy link
Member

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.

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`.
@sunfishcode
Copy link
Member

Should we have an --enable-all too, like wabt does?

@alexcrichton
Copy link
Member Author

Sounds good to me! Added now

@fitzgen
Copy link
Member

fitzgen commented Feb 6, 2020

Should we have an --enable-all too, like wabt does?

+1 from me

Copy link
Member

@peterhuene peterhuene left a 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.

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
crates/api/src/runtime.rs Outdated Show resolved Hide resolved
alexcrichton and others added 2 commits February 7, 2020 04:05
Co-Authored-By: Peter Huene <peterhuene@protonmail.com>
Co-Authored-By: Peter Huene <peterhuene@protonmail.com>
@alexcrichton alexcrichton merged commit a6adf52 into bytecodealliance:master Feb 7, 2020
@alexcrichton alexcrichton deleted the more-feature-flags branch February 7, 2020 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants