diff options
| author | 2020-10-09 19:00:42 +0000 | |
|---|---|---|
| committer | 2020-10-09 19:00:42 +0000 | |
| commit | 6682ef42a497e5fdf48d0ade03efd23dbf8379dd (patch) | |
| tree | 7d2210cb8d947742fd69c97484e4ece0ccd6ebc2 | |
| parent | 38cfe29597597430d1af5a90e7bb6ca6cf947eaf (diff) | |
| parent | 134161f7e5ea08d323becb0b16734aa9d0cb610e (diff) | |
Merge "Global ThinLTO: opt out vndk binaries as a workaround"
| -rw-r--r-- | cc/lto.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } |