-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] Strip AOT
.so
s when linking (#6842)
Fixes: #6840 Context: b21cbf9 Commit b21cbf9 contained a TODO: > TODO: the Resulting `.apk` sizes also increase[d] unexpectedly, with > `Xamarin.Forms_Performance_Integration-Signed-Release-Profiled-Aot.apkdesc` > showing a 1.7MB increase in `.apk` size. We believe that this is > because of more verbose debug symbols. > #6840 will track this. Update the `<GetAotArguments/>` MSBuild task to add the `-s` linker flag to `GetAotArguments.LdFlags`. This will cause the native linker to produce shared AOT libraries without debug symbols. Debug symbols are stripped unless the `$(DebugSymbols)`=True. This fixes the size regression in `Xamarin.Forms_Performance_Integration-Signed-Release-Profiled-Aot.apkdesc`, shrinking PackageSize from 19,475,110 down to 16,061,636. Compare to the pre-b21cbf94 PackageSize of 17,713,830: we're now 1.6MB *smaller* than b21cbf9!
- Loading branch information
Showing
9 changed files
with
307 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.