summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cc/lto.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cc/lto.go b/cc/lto.go
index 99598a98f..6d555790c 100644
--- a/cc/lto.go
+++ b/cc/lto.go
@@ -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 {