Add -generate-type-units to Android when ThinLTO.
- Add '-Wl,-mllvm -Wl,-generate-type-units' to ldflags for Chrome Android builds using ThinLTO (use_thin_lto), which is typically the case just for official builds (is_official). - This brings the 32bit binary size of Chrome under the linker size limit, so symbol_level can be raised back to "2" for these builds. - Exclude builds with ThinLTO from the logic that lowers symbol_level to "1" for non-component Android builds. Change-Id: I26457985b26d0e84bf08640c5128b84eacdcc43e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992240 Commit-Queue: Nelson Billing <nbilling@google.com> Reviewed-by:Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#729971}
Showing
Please register or sign in to comment