Merge "Global ThinLTO: opt out vndk binaries as a workaround"
This commit is contained in:
@@ -71,7 +71,8 @@ func (lto *lto) begin(ctx BaseModuleContext) {
|
|||||||
} else if ctx.Config().IsEnvTrue("GLOBAL_THINLTO") {
|
} else if ctx.Config().IsEnvTrue("GLOBAL_THINLTO") {
|
||||||
staticLib := ctx.static() && !ctx.staticBinary()
|
staticLib := ctx.static() && !ctx.staticBinary()
|
||||||
hostBin := ctx.Host()
|
hostBin := ctx.Host()
|
||||||
if !staticLib && !hostBin {
|
vndk := ctx.isVndk() // b/169217596
|
||||||
|
if !staticLib && !hostBin && !vndk {
|
||||||
if !lto.Never() && !lto.FullLTO() {
|
if !lto.Never() && !lto.FullLTO() {
|
||||||
lto.Properties.Lto.Thin = boolPtr(true)
|
lto.Properties.Lto.Thin = boolPtr(true)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user