Skip to content

Enable debug symbols by default in release builds #7418

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

Closed
wants to merge 1 commit into from

Conversation

michaelsproul
Copy link
Member

Proposed Changes

Turn on debug symbols for release builds so that we get more informative backtraces.

This won't affect releases, which use maxperf. If users building from source want to remove debug symbols they can opt in to maxperf, although I suspect nobody will notice any detriment from this change.

@michaelsproul michaelsproul added the v7.0.2 Patch release for shortly after Pectra on mainnet label May 8, 2025
@michaelsproul
Copy link
Member Author

Binary size increased to 1.9GB, so uh, yeah we probably shouldn't change the default release profile. Maybe a new profile called... release-debug?

@michaelsproul michaelsproul added the work-in-progress PR is a work-in-progress label May 8, 2025
@jimmygchen jimmygchen requested review from Copilot and removed request for Copilot May 8, 2025 12:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables debug symbols by default in release builds to improve backtraces in debugging scenarios without affecting the optimized maxperf releases.

  • Enabled debug symbols in the release profile
  • Explicitly disabled debug symbols in the maxperf profile while inheriting other settings from release
Comments suppressed due to low confidence (1)

Cargo.toml:302

  • [nitpick] Consider moving the inherits field to the top of the [profile.maxperf] section to improve clarity on which settings are being inherited and overridden.
inherits = "release"

@michaelsproul
Copy link
Member Author

Not viable right now. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v7.0.2 Patch release for shortly after Pectra on mainnet work-in-progress PR is a work-in-progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant