Repository navigation
[features] wasm2c: features on by default since WABT 1.0.42 - #578
Merged
Merged
Conversation
sbc100
approved these changes
Oct 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #577.
WABT 1.0.42 turned on by default the features below: in
include/wabt/feature.defthey arefalseup to 1.0.41 andtruein 1.0.42, and the README of 1.0.42 marks them as supported by wasm2c. The wasm2c entries still said "Requires flag"; this sets them to"1.0.42".exceptions--enable-exceptions1.0.42exceptionsFinal--enable-exceptions1.0.42extendedConst--enable-extended-const1.0.42memory64--enable-memory641.0.42multiMemory--enable-multi-memory1.0.42tailCall--enable-tail-call1.0.42Verified with one module per feature (legacy
try/catch,try_table, an extended constant expression in a global, i64-addressed load/store, load/store on a second memory, a 1 000 000-deepreturn_call), translated bywasm2c1.0.42 with no flags, compiled against the wasm2c runtime and run; each returned the expected value. The modules are in #577.Not changed:
customPageSizes: still behind--enable-custom-page-sizes, so the current entry is correct.--enable-threads, but that is not enough to call it supported).features.jsonvalidates againstfeatures.schema.jsonwith the CI command (ajv -c ajv-formats -s features.schema.json -d features.json --strict=true).