diff options
Diffstat (limited to 'cc/afdo.go')
| -rw-r--r-- | cc/afdo.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cc/afdo.go b/cc/afdo.go index 91cf0b8a2..e7dea0e0d 100644 --- a/cc/afdo.go +++ b/cc/afdo.go @@ -64,6 +64,13 @@ func (afdo *afdo) props() []interface{} { return []interface{}{&afdo.Properties} } +func (afdo *afdo) begin(ctx BaseModuleContext) { + // Disable on eng builds for faster build. + if ctx.Config().Eng() { + afdo.Properties.Afdo = false + } +} + // afdoEnabled returns true for binaries and shared libraries // that set afdo prop to True and there is a profile available func (afdo *afdo) afdoEnabled() bool { |