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

Commit 5bb2933d authored by Yi Kong's avatar Yi Kong Committed by android-build-merger
Browse files

Add environment variable to globally disable LTO am: 03d383d0

am: 96548ad4

Change-Id: I9876e420de160d34df9b920470a3bb894ff0bde8
parents 4bc833f3 96548ad4
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 {