summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2023-06-13 14:38:42 +0900
committerYi Kong <yikong@google.com>2023-06-13 06:23:18 +0000
commit51a6acef395db893a6c693ac5daa9fb376c1c994 (patch)
treeada49bf2af01272317c2c4bbd43f13d36b1f00e5
parent4b737c774c3519cafabf3d2030afadcf019ac8ee (diff)
downloadlibcxx-51a6acef395db893a6c693ac5daa9fb376c1c994.tar.gz
Turn on LTO for libc++.so
For arm64-userdebug, binary size increased from 725KB to 748KB (3.1%). Test: presubmit Change-Id: I0277dbe93ee20e91619d255d71fcd75933faa24c
-rw-r--r--Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index c759964f2..c577256b0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -172,6 +172,9 @@ cc_library_shared {
whole_static_libs: ["libc++_static"],
stl: "none",
+ lto: {
+ thin: true,
+ },
afdo: true,
target: {