Merge "Revert "Do not build tests with ThinLTO"" am: a471535c72
am: 77f08017ab
am: 038ce8bb1d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1874098 Change-Id: I2fd52243abf7a50fbe4cf527173195e9e93ee694
This commit is contained in:
@@ -137,9 +137,8 @@ func (lto *lto) LTO(ctx BaseModuleContext) bool {
|
|||||||
|
|
||||||
func (lto *lto) DefaultThinLTO(ctx BaseModuleContext) bool {
|
func (lto *lto) DefaultThinLTO(ctx BaseModuleContext) bool {
|
||||||
host := ctx.Host()
|
host := ctx.Host()
|
||||||
test := ctx.testBinary()
|
|
||||||
vndk := ctx.isVndk() // b/169217596
|
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 {
|
func (lto *lto) FullLTO() bool {
|
||||||
|
Reference in New Issue
Block a user