Skip to content

Commit

Permalink
raphael: fingerprint: enable thinlto + whole program vtables optimiza…
Browse files Browse the repository at this point in the history
…tion

We already enable with global lto, however we don't force on whole
program vtable optimizations for all. Due to visibility meeting
requirements for this optimization, this works fine. Whereas
not all modules using hidl_defaults meet requirements for this
optimization (which depends on LTO).
  • Loading branch information
RealJohnGalt authored and kondors1995 committed Jul 23, 2023
1 parent f90c990 commit 63d43de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fingerprint/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ cc_binary {
"libbinder_ndk",
],
proprietary: true,
lto: {
thin: true,
},
whole_program_vtables: true,
}

cc_library_static {
Expand All @@ -48,4 +52,8 @@ cc_library_static {
header_libs: [
"generated_kernel_headers",
],
lto: {
thin: true,
},
whole_program_vtables: true,
}

0 comments on commit 63d43de

Please sign in to comment.