Skip to content

Add extended-const to feature matrix and pass to wasm-ld - #27532

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:extended-const-feature-matrix
Open

Add extended-const to feature matrix and pass to wasm-ld#27532
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:extended-const-feature-matrix

Conversation

@sbc100

@sbc100 sbc100 commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Add Feature.EXTENDED_CONST to tools/feature_matrix.py with minimum supported engine versions (Chrome 114, Firefox 112, Safari 17.4, Node 21.0.0).

Also handle -mextended-const and -mno-extended-const flags in tools/cmdline.py, and pass --extra-features=extended-const to wasm-ld in tools/building.py when extended-const is available.

Even though this feature is not enabled by our default browser versions this change does enable this feature automatically when opting into other newer features such as MEMORY64 or WASM_EXCEPTIONS.

@sbc100
sbc100 requested a review from dschuff August 12, 2026 23:49
@sbc100

sbc100 commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

Of course, because this is the first time we are really enabling this we ran into an llvm isse: llvm/llvm-project#215929

@sbc100
sbc100 force-pushed the extended-const-feature-matrix branch from dbc2de5 to 4b44b31 Compare August 14, 2026 01:06
Add `Feature.EXTENDED_CONST` to `tools/feature_matrix.py` with minimum
supported engine versions (Chrome 114, Firefox 112, Safari 17.4, Node
21.0.0).

Also handle `-mextended-const` and `-mno-extended-const` flags in
`tools/cmdline.py`, and pass `--extra-features=extended-const` to
`wasm-ld` in `tools/building.py` when `extended-const` is available.

Even though this feature is not enabled by out default browser versions
this change does enable this feature automatically when opting into
other newer features such as MEMORY64 or WASM_EXCEPTIONS.
@sbc100
sbc100 force-pushed the extended-const-feature-matrix branch from 4b44b31 to 1683bff Compare August 14, 2026 05:23
@sbc100
sbc100 requested a review from kripken August 14, 2026 05:50
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.

1 participant