Make prefer32 a lambda
prefer32 needs to be set differently for app and native modules. Make it use lambda provided by the module type instead of trying to make archMutator figure it out. Test: m checkbuild Change-Id: Ibf8af35fdd3e1721725539d1f5452f4439d2125c
This commit is contained in:
@@ -208,6 +208,10 @@ func AndroidAppFactory() android.Module {
|
||||
&module.aaptProperties,
|
||||
&module.appProperties)
|
||||
|
||||
module.Prefer32(func(ctx android.BaseModuleContext, base *android.ModuleBase, class android.OsClass) bool {
|
||||
return class == android.Device && ctx.Config().DevicePrefer32BitApps()
|
||||
})
|
||||
|
||||
InitJavaModule(module, android.DeviceSupported)
|
||||
return module
|
||||
}
|
||||
|
Reference in New Issue
Block a user