WebAssembly / WebAssembly/wasi-sdk

Why do we build compiler-rt/libcxx/libcxxabi with RelWithDebugInfo?

Open
#281 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CMake
Stars
1.6k
Forks
237
Avg merge
18h 26m
Merged PRs (30d)
5

Description

Why are we building them with RelWithDebugInfo instead of Release? Apart from lower optimization level, it causes dwarf sections to be linked into the final wasm with default linking flags, which IMHO is not desirable for most wasi-sdk users.

Contributor guide

No contributing guide indexed for this repository

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 by tracing the build configuration for compiler-rt, libcxx, and libcxxabi to find where RelWithDebugInfo is selected, then inspect how the default WASM linking flags handle its DWARF sections. Determine whether the setting is intentional and document or adjust the configuration so the issue's optimization and final-WASM debug-section concerns are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, wasm
Domain
build-system, compilers
Issue type
Bug
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.