Skip to content

Strip symbol and DWARF tables from Android artifacts - #162

Merged
yiguodev merged 1 commit into
XTLS:mainfrom
homa-games:android-lib-size-optimization
Oct 6, 2026
Merged

yiguodev merged 1 commit into
XTLS:mainfrom
homa-games:android-lib-size-optimization

Conversation

@homa-games

Copy link
Copy Markdown
Contributor

This change reduces the size of Android artifacts produced by the gomobile bind build.
It adds -trimpath to remove local filesystem paths from the build output, and passes -s -w -buildid= to the Go linker to strip symbol and DWARF debugging information and omit the build ID. These details are not needed in release artifacts and contribute to their size.

strip symbol and DWARF tables from Android artifacts
@yiguodev
yiguodev merged commit e02cdaa into XTLS:main Oct 6, 2026
2 checks passed
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.

2 participants