diff options
author | Stephen Crane <sjc@immunant.com> | 2017-05-09 15:44:35 -0700 |
---|---|---|
committer | Stephen Crane <sjc@immunant.com> | 2017-08-15 12:54:12 -0700 |
commit | ba090d16c2c92f4711860f0a56752a917f8daad0 (patch) | |
tree | 2dde51f9c78ae2adbe070961b8643d0c035978f0 /Android.bp | |
parent | b3c2154f2afc419c8d6bc92c812eff0113e9f692 (diff) | |
download | build_soong-ba090d16c2c92f4711860f0a56752a917f8daad0.tar.gz build_soong-ba090d16c2c92f4711860f0a56752a917f8daad0.tar.bz2 build_soong-ba090d16c2c92f4711860f0a56752a917f8daad0.zip |
Add LTO support to soong
Enabling the lto property for a module builds that module and all static
dependencies with LTO.
LTO (link-time optimization) allows the compiler to optimize and
generate code for the entire module at link time, rather than
per-compilation unit. LTO is required for Clang CFI and other
whole-program optimization techniques. LTO also allows cross-compilation
unit optimizations that should result in faster and smaller code, at the
expense of additional compilation time.
Test: make -j12 libc with lto: true for libc
Change-Id: Ib8baefedf60e02701d44673a7c473e0845730101
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -115,6 +115,7 @@ bootstrap_go_package { "cc/check.go", "cc/coverage.go", "cc/gen.go", + "cc/lto.go", "cc/makevars.go", "cc/prebuilt.go", "cc/proto.go", |