Add IsModulePreferred
Bug: 177892522 Test: m nothing Change-Id: I47268b81359d6fceb60e899a730b3b6034e09814
This commit is contained in:
@@ -56,16 +56,7 @@ func isActiveModule(module android.Module) bool {
|
||||
if !module.Enabled() {
|
||||
return false
|
||||
}
|
||||
if module.IsReplacedByPrebuilt() {
|
||||
// A source module that has been replaced by a prebuilt counterpart.
|
||||
return false
|
||||
}
|
||||
if prebuilt, ok := module.(android.PrebuiltInterface); ok {
|
||||
if p := prebuilt.Prebuilt(); p != nil {
|
||||
return p.UsePrebuilt()
|
||||
}
|
||||
}
|
||||
return true
|
||||
return android.IsModulePreferred(module)
|
||||
}
|
||||
|
||||
func (b *bootJarsSingleton) GenerateBuildActions(ctx android.SingletonContext) {
|
||||
|
Reference in New Issue
Block a user