Skip to content

wasm: support source maps for the unknown target #56660

Closed
@rpjohnst

Description

@rpjohnst

Quoting #46765, which was closed and locked inexplicably:

Source maps are the analogon to debuginfo in the js world, including wasm. So we should generate them.

Emscripten apparently already is able to emit them, at least this example contains source maps: https://yurydelendik.github.io/old-man-sandbox/rust-wasm-hey/hey.html Maybe it's not upstreamed yet, idk.

I guess the bulk of this work would reside inside llvm, but I'm still filing a bug here to track support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions