Revert "Do not build tests with ThinLTO"
On second thought, this is actually counter-productive rather than an
optimisation. LTOing test code is usually quite cheap, however since
tests can pull in additional static libraries (e.g. to set up test
environment), we will have to create non-LTO variants for these
dependent libraries, which can be much more expensive.
This reverts commit 85d7297318
.
Bug: 195134194
Bug: 203737712
Change-Id: I1a105136075133a5b5895d00847d8796c419964c
Test: m GLOBAL_THINLTO=true dist device-tests platform_tests
This commit is contained in:
parent
85d7297318
commit
04e459d9ff
1 changed files with 1 additions and 2 deletions
|
@ -137,9 +137,8 @@ func (lto *lto) LTO(ctx BaseModuleContext) bool {
|
|||
|
||||
func (lto *lto) DefaultThinLTO(ctx BaseModuleContext) bool {
|
||||
host := ctx.Host()
|
||||
test := ctx.testBinary()
|
||||
vndk := ctx.isVndk() // b/169217596
|
||||
return GlobalThinLTO(ctx) && !lto.Never() && !host && !test && !vndk
|
||||
return GlobalThinLTO(ctx) && !lto.Never() && !host && !vndk
|
||||
}
|
||||
|
||||
func (lto *lto) FullLTO() bool {
|
||||
|
|
Loading…
Reference in a new issue