rust-lang / rust-lang/rust

Support for 'split-debuginfo' on wasm targets

Open
#125,894 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

C-feature-request O-wasm T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

According to the documentation at Rust Compiler Codegen Options, setting split-debuginfo = "packed" should result in the generation of dwp files.

However, when building for wasm32-unknown-unknown and wasm32-wasip1, I was unable to obtain dwp files. In contrast, dwp files were successfully generated when building for x86_64-linux-unknown-gnu.

I hope that 'split-debuginfo' will be properly supported for wasm targets as well.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Rust Compiler Codegen Options documentation for split-debuginfo and reproduce the difference between wasm32-unknown-unknown, wasm32-wasip1, and x86_64-linux-unknown-gnu using split-debuginfo = "packed". Done means wasm builds generate the expected dwp files, with the behavior verified for both wasm targets.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.