Skip to content

Emscripten: link with -sWASM_BIGINT#131736

Merged
bors merged 1 commit intorust-lang:masterfrom
hoodmane:emscripten-wasm-bigint
Nov 21, 2024
Merged

Emscripten: link with -sWASM_BIGINT#131736
bors merged 1 commit intorust-lang:masterfrom
hoodmane:emscripten-wasm-bigint

Conversation

@hoodmane
Copy link
Copy Markdown
Contributor

@hoodmane hoodmane commented Oct 15, 2024

When linking an executable without dynamic linking, this is a pure improvement. It significantly reduces code size and avoids a lot of buggy behaviors. It is supported in all browsers for many years and in all maintained versions of Node.

It does change the ABI, so people who are dynamically linking with a library or executable that uses the old ABI may need to turn it off. It can be disabled if needed by passing -Clink-arg -sWASM_BIGINT=0 to rustc. But few people will want to turn it off.

Note this includes a libc bump to 0.2.162!

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-emscripten Target: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL! S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants