Merge "Global ThinLTO: opt out vndk binaries as a workaround" am: 6682ef42a4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1456235 Change-Id: If321871406c2ea2f823f05173480888cf5ffe8b4
This commit is contained in:
commit
91d57dd066
1 changed files with 2 additions and 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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue