Add environment variable to globally disable LTO am: 03d383d038
am: 96548ad441
Change-Id: I9876e420de160d34df9b920470a3bb894ff0bde8
This commit is contained in:
@@ -60,6 +60,9 @@ func (lto *lto) props() []interface{} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (lto *lto) begin(ctx BaseModuleContext) {
|
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 {
|
func (lto *lto) deps(ctx BaseModuleContext, deps Deps) Deps {
|
||||||
|
Reference in New Issue
Block a user