Only enable global ThinLTO for LP64 targets
Due to the lack of engineering efforts into LP32 targets, do not enable global ThinLTO for them by default. Test: presubmit Bug: 169004486 Change-Id: I79b77baecf16fda95ff5dccc5a401596a0557d5d
This commit is contained in:
@@ -136,9 +136,10 @@ func (lto *lto) LTO(ctx BaseModuleContext) bool {
|
||||
}
|
||||
|
||||
func (lto *lto) DefaultThinLTO(ctx BaseModuleContext) bool {
|
||||
lib32 := ctx.Arch().ArchType.Multilib == "lib32"
|
||||
host := ctx.Host()
|
||||
vndk := ctx.isVndk() // b/169217596
|
||||
return GlobalThinLTO(ctx) && !lto.Never() && !host && !vndk
|
||||
return GlobalThinLTO(ctx) && !lto.Never() && !lib32 && !host && !vndk
|
||||
}
|
||||
|
||||
func (lto *lto) FullLTO() bool {
|
||||
|
Reference in New Issue
Block a user