Merge "Allow static binaries to enable AFDO" am: efdc4f4d42
am: 162f9c5f33
am: 29e6277c10
am: edbd3e1e62
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1958922 Change-Id: I7bf0988b48d919c817e5cc9831197474a08bbf47
This commit is contained in:
@@ -93,7 +93,13 @@ func (props *AfdoProperties) GetAfdoProfileFile(ctx android.BaseModuleContext, m
|
||||
}
|
||||
|
||||
func (afdo *afdo) begin(ctx BaseModuleContext) {
|
||||
if afdo.Properties.Afdo && !ctx.static() && !ctx.Host() {
|
||||
if ctx.Host() {
|
||||
return
|
||||
}
|
||||
if ctx.static() && !ctx.staticBinary() {
|
||||
return
|
||||
}
|
||||
if afdo.Properties.Afdo {
|
||||
module := ctx.ModuleName()
|
||||
if afdo.Properties.GetAfdoProfileFile(ctx, module).Valid() {
|
||||
afdo.Properties.AfdoTarget = proptools.StringPtr(module)
|
||||
|
Reference in New Issue
Block a user