Add environment variable to globally disable LTO am: 03d383d038

am: 96548ad441

Change-Id: I9876e420de160d34df9b920470a3bb894ff0bde8
This commit is contained in:
Yi Kong
2018-02-01 11:35:20 +00:00
committed by android-build-merger

View File

@@ -60,6 +60,9 @@ func (lto *lto) props() []interface{} {
}
func (lto *lto) begin(ctx BaseModuleContext) {
if ctx.Config().IsEnvTrue("DISABLE_LTO") {
lto.Properties.Lto.Never = boolPtr(true)
}
}
func (lto *lto) deps(ctx BaseModuleContext, deps Deps) Deps {