Turn on LTO for libc++.so

For arm64-userdebug, binary size increased from 725KB to 748KB (3.1%).

Test: presubmit
Change-Id: I0277dbe93ee20e91619d255d71fcd75933faa24c
This commit is contained in:
Yi Kong
2023-06-13 14:38:42 +09:00
parent 4b737c774c
commit 51a6acef39

View File

@@ -172,6 +172,9 @@ cc_library_shared {
whole_static_libs: ["libc++_static"],
stl: "none",
lto: {
thin: true,
},
afdo: true,
target: {