Skip to content

Strip debug symbols from release binaries to reduce size#2933

Open
antoniosarosi wants to merge 1 commit intocanaryfrom
strip-binary-symbols
Open

Strip debug symbols from release binaries to reduce size#2933
antoniosarosi wants to merge 1 commit intocanaryfrom
strip-binary-symbols

Conversation

@antoniosarosi
Copy link
Contributor

Summary

  • Add strip=true to release profile to remove debug symbols from binaries
  • Add split-debuginfo=packed to generate separate debug symbol files
  • Update CI workflows to upload debug symbols as separate artifacts for crash analysis

Binary Size Reductions

Binary Before After Savings
TypeScript FFI 62 MB 52 MB 16%
Python FFI 60 MB 52 MB 13%
CLI 60 MB 48 MB 20%
CFFI 57 MB 51 MB 11%

Debug Symbols

Debug symbols are now stored separately and uploaded as CI artifacts:

  • Linux: .dwp files
  • macOS: .dSYM directories
  • Windows: .pdb files

These can be downloaded from GitHub Actions to symbolicate crash reports if needed.

Test Plan

  • Local release build produces stripped binaries
  • file command confirms binaries are "stripped"
  • .dwp files are generated alongside binaries
  • CI builds successfully with new settings
  • Debug symbol artifacts are uploaded correctly

- Add strip=true to release profile in engine/Cargo.toml
- Add split-debuginfo=packed to generate separate debug symbol files
- Add debug=full to enable .dwp/.dSYM/.pdb file generation
- Update CI workflows to upload debug symbols as separate artifacts

Binary size reductions:
- TypeScript FFI: 62 MB → 52 MB (16%)
- Python FFI: 60 MB → 52 MB (13%)
- CLI: 60 MB → 48 MB (20%)
- CFFI: 57 MB → 51 MB (11%)

Debug symbols are now stored separately for crash analysis:
- Linux: .dwp files
- macOS: .dSYM directories
- Windows: .pdb files
@vercel
Copy link

vercel bot commented Jan 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
promptfiddle Error Error Jan 7, 2026 3:19pm

@antoniosarosi antoniosarosi changed the title feat: strip debug symbols from release binaries to reduce size Strip debug symbols from release binaries to reduce size Jan 7, 2026
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.

1 participant