✨ Disable DWARF and symbol table to decrease binary/image size#12856
✨ Disable DWARF and symbol table to decrease binary/image size#12856Sunnatillo wants to merge 1 commit intokubernetes-sigs:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
94918a9 to
e8d6c73
Compare
This commit introduces DBG variable which is used to control including DWARF and symbol table for images/binaries Signed-off-by: Sunnatillo <sunnat.samadov@est.tech>
e8d6c73 to
4fbbc69
Compare
| @@ -102,7 +102,12 @@ version::ldflags() { | |||
| add_ldflag "gitReleaseCommit" "${GIT_RELEASE_COMMIT}" | |||
|
|
|||
| # The -ldflags parameter takes a single string, so join the output. | |||
There was a problem hiding this comment.
Let's check if that breaks using Tilt with the debugger. Probably not, but not entirely sure
There was a problem hiding this comment.
ldflags set in separate place for Tilt. it does not affect the tilt debugging.
Line 224 in 490f76e
There was a problem hiding this comment.
Also tested and working fine.
|
/area misc |
|
Thx for the PR. I want to do some due diligence before merging it. Just probably won't find time to do it any time soon |
|
/retest |
1 similar comment
|
/retest |
|
@sbueringer Please take a look when you have time. |
|
Yup, will do! |
What this PR does / why we need it:
This PR removes DWARF and symbol table from binaries by default and introduces an option including them by setting
DBG=1.Current images
After removing DWARF and symbol table
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
#12855