commit | 1ba5d6113bd0b5342119bdf2d87946a827af1792 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Thu Jul 26 04:17:10 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 26 04:17:10 2018 |
tree | 5bbcb8c1fbcb9c3804bc816d0b153ea761f16359 | |
parent | 68ed4d05415b88396e198198bbe733a0e1d74dc9 [diff] |
build: Enable ThinLTO in official Android builds. With this change we start building Chromium with ThinLTO when targeting Android. In 64-bit Monochrome builds, the 32-bit binary is also built with ThinLTO. This change is expected to reduce code size significantly (in local measurements it reduced the size of MonochromePublic.apk by 2.3MB) and is a prerequisite for enabling control flow integrity in official builds. Note that although this change enables ThinLTO, it does not enable the cross-TU optimizations normally associated with LTO. Enabling cross-TU optimizations is a separate project. On my local machine (a Lenovo P920) libmonochrome.so link times increase as follows: before after (first link) after (incremental links) 32-bit 18s 140s 50s 64-bit 13s 107s 41s All known blockers have now been fixed. This CL is likely to uncover unknown blockers. Bug: 469376 Change-Id: I8981e17abd50bc5ca00440e0d74dda878c911749 Reviewed-on: https://chromium-review.googlesource.com/1150870 Commit-Queue: Peter Collingbourne <pcc@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#578195}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .