commit | 51a6acef395db893a6c693ac5daa9fb376c1c994 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Tue Jun 13 14:38:42 2023 +0900 |
committer | Yi Kong <yikong@google.com> | Tue Jun 13 06:23:18 2023 +0000 |
tree | ada49bf2af01272317c2c4bbd43f13d36b1f00e5 | |
parent | 4b737c774c3519cafabf3d2030afadcf019ac8ee [diff] |
Turn on LTO for libc++.so For arm64-userdebug, binary size increased from 725KB to 748KB (3.1%). Test: presubmit Change-Id: I0277dbe93ee20e91619d255d71fcd75933faa24c
diff --git a/Android.bp b/Android.bp index c759964..c577256 100644 --- a/Android.bp +++ b/Android.bp
@@ -172,6 +172,9 @@ whole_static_libs: ["libc++_static"], stl: "none", + lto: { + thin: true, + }, afdo: true, target: {