Skip to content
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

Reduce .so library binary size for gcc #377

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

patkenneally
Copy link
Collaborator

Description

The -g flag is removed from the release build profile. -g adds debug symbols to .so binaries, which are not required/expected when building for release. Additionally, the -s flag is added to the release build profile to strip further redundant symbols.

Verification

Build proceeds and tests pass as expected. Further, a comparison can be made between the .so binary sizes before and after adding the -s flag.

Documentation

None new, none invalidated.

Future work

None

@patkenneally patkenneally force-pushed the feature/reduce-library-binary-size-linux branch from 5f7fbe0 to 4e63d29 Compare February 18, 2025 22:24
Copy link
Collaborator

@brsm3129 brsm3129 left a comment

Choose a reason for hiding this comment

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

I tried digging through the GH Actions build log to find evidence of these flags but I found that CMakeLists.txt is not directly exposed in the build process.

@patkenneally patkenneally merged commit 2328538 into develop Feb 19, 2025
4 checks passed
@patkenneally patkenneally deleted the feature/reduce-library-binary-size-linux branch February 19, 2025 18:36
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