Skip to content

Conversation

@sbc100
Copy link
Member

@sbc100 sbc100 commented Oct 22, 2025

This flag has been enabled by default in emscripten for a while now so I don't think we need this here anymore.

Also remove the -Wno-experimental flag which is no longer needed for -sMEMORY64.

Also remove -sMODULARIZE which is implied by -sEXPORT_ES6.

@sbc100 sbc100 requested review from dschuff and kripken October 22, 2025 22:11
@sbc100 sbc100 enabled auto-merge (squash) October 22, 2025 22:11
@sbc100 sbc100 force-pushed the wasm_bigint branch 2 times, most recently from 2484a29 to b84c9bd Compare October 22, 2025 22:14
@sbc100 sbc100 force-pushed the wasm_bigint branch 3 times, most recently from 834c3bd to aa256bb Compare October 23, 2025 23:58
@sbc100
Copy link
Member Author

sbc100 commented Oct 24, 2025

Hm.. it looks like more work is requires to make the binaryen API bigint friendly. @kripken did you take a look at this in the past?

sbc100 added a commit that referenced this pull request Oct 24, 2025
@kripken
Copy link
Member

kripken commented Oct 24, 2025

Hmm, no, I don't recall doing that.

More generally, my hope is we can move binaryen.js to embind so stuff like this is handled automatically.

@sbc100
Copy link
Member Author

sbc100 commented Oct 24, 2025

Hmm, no, I don't recall doing that.

More generally, my hope is we can move binaryen.js to embind so stuff like this is handled automatically.

It seems like there are places where the API uses 64-bit stuff and is not expecting it to simply use bigints

sbc100 added a commit that referenced this pull request Oct 24, 2025
@sbc100 sbc100 force-pushed the wasm_bigint branch 3 times, most recently from 2a689a6 to 991158b Compare October 24, 2025 19:21
This flag has been enabled by default in emscripten for a while now
so I don't think we need this here anymore.

The main user-visible effect of this change is that it makes the
`module.i64.const` JS method now simply take a single bigint rather than
a pair numbers.
@sbc100
Copy link
Member Author

sbc100 commented Oct 24, 2025

I decided to look into the changes needed to the JS API.. WDYT?

@sbc100 sbc100 changed the title [emscripten] Remove -sWASM_BIGINT flag [emscripten] Enable WASM_BIGINT by default Oct 24, 2025
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes make sense to me, but they are breaking, so please update the changelog.

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.

3 participants