summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-10-09 19:00:42 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-10-09 19:00:42 +0000
commit6682ef42a497e5fdf48d0ade03efd23dbf8379dd (patch)
tree7d2210cb8d947742fd69c97484e4ece0ccd6ebc2
parent38cfe29597597430d1af5a90e7bb6ca6cf947eaf (diff)
parent134161f7e5ea08d323becb0b16734aa9d0cb610e (diff)
Merge "Global ThinLTO: opt out vndk binaries as a workaround"
-rw-r--r--cc/lto.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/lto.go b/cc/lto.go
index abd8dfb9f..a3b28d9a2 100644
--- a/cc/lto.go
+++ b/cc/lto.go
@@ -71,7 +71,8 @@ func (lto *lto) begin(ctx BaseModuleContext) {
} else if ctx.Config().IsEnvTrue("GLOBAL_THINLTO") {
staticLib := ctx.static() && !ctx.staticBinary()
hostBin := ctx.Host()
- if !staticLib && !hostBin {
+ vndk := ctx.isVndk() // b/169217596
+ if !staticLib && !hostBin && !vndk {
if !lto.Never() && !lto.FullLTO() {
lto.Properties.Lto.Thin = boolPtr(true)
}