summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/Android.bp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/hwui/Android.bp b/libs/hwui/Android.bp
index 24d819e93ff2..35790b6558c7 100644
--- a/libs/hwui/Android.bp
+++ b/libs/hwui/Android.bp
@@ -6,6 +6,7 @@ cc_defaults {
//"hwui_bugreport_font_cache_usage",
//"hwui_compile_for_perf",
"hwui_pgo",
+ "hwui_lto",
],
cpp_std: "c++17",
@@ -126,6 +127,18 @@ cc_defaults {
},
}
+// Build hwui library with ThinLTO by default.
+cc_defaults {
+ name: "hwui_lto",
+ target: {
+ android: {
+ lto: {
+ thin: true,
+ },
+ },
+ },
+}
+
// ------------------------
// library
// ------------------------