Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 'split-debuginfo' on wasm targets #125894

Open
namse opened this issue Jun 2, 2024 · 1 comment
Open

Support for 'split-debuginfo' on wasm targets #125894

namse opened this issue Jun 2, 2024 · 1 comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@namse
Copy link

namse commented Jun 2, 2024

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.

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jun 2, 2024
@saethlin saethlin added the O-wasm Target: WASM (WebAssembly), http://webassembly.org/ label Jun 2, 2024
@saethlin saethlin changed the title Support for 'split-debuginfo' on wasm Target Support for 'split-debuginfo' on wasm targets Jun 2, 2024
@saethlin saethlin added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-feature-request Category: A feature request, i.e: not implemented / a PR. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jun 2, 2024
@bjorn3
Copy link
Member

bjorn3 commented Jun 4, 2024

https://github.com/rust-lang/thorin needs to add support for reading and writing wasm files before -Csplit-debuginfo=packed can be supported. -Csplit-debuginfo=unpacked is already supported as unstable feature when -Zunstable-options is passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants