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

Do not generate debug symbols for release build. #60

Closed

Conversation

rtakacs
Copy link
Contributor

@rtakacs rtakacs commented Jan 21, 2019

By default, all the build types (release, debug) have the -g3 (generate debug info) option for the compiler. This patch eliminates that option if release build is selected. In this case the size of release builds can be reduced from 29 MB to 2.7 MB.

@rtakacs rtakacs changed the title Do not generate debug sysmbols for release build. Do not generate debug symbols for release build. Jan 21, 2019
Signed-off-by: Roland Takacs <rtakacs.uszeged@partner.samsung.com>
@rtakacs rtakacs force-pushed the enhancement/cmake-debug-symbols branch from 5b629d6 to 2f5002f Compare January 21, 2019 14:07
@clover2123
Copy link
Contributor

Unfortunately, debug symbol option(-g3) is intended to debug release-build escargot in target products. Although it generates large-sized binary, this option need to be maintained in our environment.

@rtakacs
Copy link
Contributor Author

rtakacs commented Jan 23, 2019

@clover2123 Thanks to clarifying this. I'm closing the issue.

@rtakacs rtakacs closed this Jan 23, 2019
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.

None yet

2 participants