Skip to content

workspace: emit line-tables-only debuginfo in dev profile#14877

Draft
avi-starkware wants to merge 1 commit into
mainfrom
avi/build-hygiene/01-dev-line-tables-only
Draft

workspace: emit line-tables-only debuginfo in dev profile#14877
avi-starkware wants to merge 1 commit into
mainfrom
avi/build-hygiene/01-dev-line-tables-only

Conversation

@avi-starkware

Copy link
Copy Markdown
Collaborator

Default dev builds now emit line-tables-only debuginfo instead of the
implicit full DWARF (debug=2). This preserves panic/backtrace file:line,
tracing call-site locations, and profiler/coverage symbols, while dropping
the variable/type DWARF that dominates codegen time, linker memory, and
target/debug disk. Debugger variable inspection (breakpoints/stepping still
work) is restored on demand via the new dev-debug profile
(cargo build --profile dev-debug -p ) or CARGO_PROFILE_DEV_DEBUG=2.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Default dev builds now emit line-tables-only debuginfo instead of the
implicit full DWARF (debug=2). This preserves panic/backtrace file:line,
tracing call-site locations, and profiler/coverage symbols, while dropping
the variable/type DWARF that dominates codegen time, linker memory, and
target/debug disk. Debugger variable inspection (breakpoints/stepping still
work) is restored on demand via the new dev-debug profile
(cargo build --profile dev-debug -p <crate>) or CARGO_PROFILE_DEV_DEBUG=2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Collaborator Author

@github-actions

Copy link
Copy Markdown

Artifacts upload workflows:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants