Skip to content

chore(build): strip debug symbols using strip -g #652

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

Merged
merged 12 commits into from
Aug 20, 2025

Conversation

taegyunkim
Copy link
Contributor

@taegyunkim taegyunkim commented Aug 20, 2025

What does this PR do?

Run strip -g on all .so files in ddtrace to make sure that they're stripped of debug symbols to reduce the layer size.

This is needed to unblock DataDog/dd-trace-py#14286, which aims to build dd-trace-py with debug symbols by default.

The more right thing to do would be using pre-built wheel always instead of building from sources.

Motivation

Testing Guidelines

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

@taegyunkim taegyunkim requested review from a team as code owners August 20, 2025 15:31
@taegyunkim taegyunkim changed the title chore(build): build dd-trace-py with release mode by default chore(build): build dd-trace-py with Release mode and strip debug symbols Aug 20, 2025
@taegyunkim taegyunkim changed the title chore(build): build dd-trace-py with Release mode and strip debug symbols chore(build): strip debug symbols using strip -g Aug 20, 2025
@taegyunkim taegyunkim merged commit 33fcbce into main Aug 20, 2025
67 of 68 checks passed
@taegyunkim taegyunkim deleted the taegyunkim/dd-compile-release branch August 20, 2025 20:33
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.

3 participants