#163441·Rust

Emscripten linker stderr: deprecated `-sWASM_BIGINT`

Author: madsmtmCreated Sep 28, 2026Updated Sep 28, 2026
LabelsP-lowT-compilerC-bugneeds-triageO-emscriptenL-linker_messages

Doing a simple rustc +1.98.1 --target wasm32-unknown-emscripten foo.rs gives the following warning:

warning: linker stderr: emcc: WASM_BIGINT is deprecated (no longer needed. Should only ever be implicitly disabled by -sWASM=0). Please open a bug if you have a continuing need for this setting [-Wdeprecated]
  |
  = note: `#[warn(linker_messages)]` on by default

warning: 1 warning emitted

I can see two options for resolving this:

  1. Remove -sWASM_BIGINT from the default linker arguments. This would be simplest, but might drop support for older emsdk versions though, I'm unsure whether this is a problem? Which versions of emsdk we support?
  2. Tweak the linker_messages lint to filter out this warning. This is a bit more involved, but it's done for loads of other messages, so it wouldn't be a big issue.

CC target maintainers @hoodmane @juntyr, WDYT we should do here?