Do not build tests with ThinLTO am: 85d7297318

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1866896

Change-Id: I84abb89dce791e6272513adb542249c3148cb4fd
This commit is contained in:
Yi Kong
2021-10-25 17:38:11 +00:00
committed by Automerger Merge Worker

View File

@@ -137,8 +137,9 @@ 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 && !vndk
return GlobalThinLTO(ctx) && !lto.Never() && !host && !test && !vndk
}
func (lto *lto) FullLTO() bool {