Add environment variable to globally disable LTO

am: 03d383d038

Change-Id: I4b14aaf2380ca7f768e84574778f769ce3b54d98
This commit is contained in:
Yi Kong
2018-02-01 08:45:03 +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 {