commit | 9807af7ff388e83472596e68c86e555c4660cd75 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Mon Oct 25 18:32:37 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Oct 25 18:32:37 2021 +0000 |
tree | 3a8e1b8d3f38dcfe5b314d38dd66ecf4bd405a4c | |
parent | c03617de326fffaa4272de94c6ca78d555247802 [diff] | |
parent | a916324621a680c495137c77c5456155fdd0885b [diff] |
Do not build tests with ThinLTO am: 85d7297318 am: a8662675e0 am: 27a412e668 am: a916324621 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1866896 Change-Id: I927d206a8a333a67289919760fb82aca97465af8
diff --git a/cc/lto.go b/cc/lto.go index 6d55579..99598a9 100644 --- a/cc/lto.go +++ b/cc/lto.go
@@ -137,8 +137,9 @@ 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 {