• George Burgess IV's avatar
    [build] Turn ThinLTO optimizations on for Android · 743db114
    George Burgess IV authored
    This CL turns on ThinLTO optimizations for Android by default for all
    official builds.
    
    This CL is expected to increase link times of official builds by
    something around 2.5x CPU/2x wall time. More build capacity was requested
    in http://crbug.com/883563.
    
    This is also a pretty wide-reaching CL. A size decrease of a hundred
    KB is expected, and we expect that the CPU-bound parts of Chrome will
    generally be faster. If there are slowdowns, they should be very few in
    number, and very small.
    
    ThinLTO is a type of link-time optimization, which defers actual
    code-generation and some optimization until link-time. This is very
    beneficial to the optimizer, since it now has visibility into
    functions/constants that, at a per-TU level, would be opaque. ThinLTO is
    already deployed on Linux and Android, but our default Linux configuration
    does *not* use optimizations. This CL specifically enables these
    optimizations for Android.
    
          size/build time measurements.
    
    Bug: 807147
    Test: Perf testing on nexus-5 (crbug.com/836550); manual binary
    Change-Id: I7e07d9d9cb1dadd077adf44ca6217c40e13b00a8
    Reviewed-on: https://chromium-review.googlesource.com/c/1149061Reviewed-by: default avataragrieve <agrieve@chromium.org>
    Reviewed-by: default avatarPeter Collingbourne <pcc@chromium.org>
    Reviewed-by: default avatarEgor Pasko <pasko@chromium.org>
    Commit-Queue: George Burgess <gbiv@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#613198}
    743db114
BUILD.gn 82.5 KB