Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96548ad4 authored by Yi Kong's avatar Yi Kong Committed by android-build-merger
Browse files

Add environment variable to globally disable LTO

am: 03d383d0

Change-Id: I4b14aaf2380ca7f768e84574778f769ce3b54d98
parents db22f2a7 03d383d0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 {