Skip to content

Commit

Permalink
libandroid_defaults: Use ThinLTO
Browse files Browse the repository at this point in the history
In global LTO builds, this is significantly responsible for improved app
launch times.

Change-Id: I1c7cfb44548b4d47a0347e328c0ab730380580a4
  • Loading branch information
RealJohnGalt authored and Pascoato committed Jun 2, 2024
1 parent 1279fe7 commit 1dc0496
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native/android/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ cc_defaults {
"-Wunused",
"-Wunreachable-code",
],
lto: {
thin: true,
},
}

cc_library_shared {
Expand Down

0 comments on commit 1dc0496

Please sign in to comment.