commit | 6682ef42a497e5fdf48d0ade03efd23dbf8379dd | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Oct 09 19:00:42 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Oct 09 19:00:42 2020 +0000 |
tree | 7d2210cb8d947742fd69c97484e4ece0ccd6ebc2 | |
parent | 38cfe29597597430d1af5a90e7bb6ca6cf947eaf [diff] | |
parent | 134161f7e5ea08d323becb0b16734aa9d0cb610e [diff] |
Merge "Global ThinLTO: opt out vndk binaries as a workaround"
diff --git a/cc/lto.go b/cc/lto.go index abd8dfb..a3b28d9 100644 --- a/cc/lto.go +++ b/cc/lto.go
@@ -71,7 +71,8 @@ } 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) }