Merge "Remove TARGET_PREFER_32_BIT support."
This commit is contained in:
@@ -810,7 +810,7 @@ func GetOsSpecificVariantsOfCommonOSVariant(mctx BaseModuleContext) []Module {
|
||||
// Valid multilib values include:
|
||||
// "both": compile for all Targets supported by the OsClass (generally x86_64 and x86, or arm64 and arm).
|
||||
// "first": compile for only a single preferred Target supported by the OsClass. This is generally x86_64 or arm64,
|
||||
// but may be arm for a 32-bit only build or a build with TARGET_PREFER_32_BIT=true set.
|
||||
// but may be arm for a 32-bit only build.
|
||||
// "32": compile for only a single 32-bit Target supported by the OsClass.
|
||||
// "64": compile for only a single 64-bit Target supported by the OsClass.
|
||||
// "common": compile a for a single Target that will work on all Targets suported by the OsClass (for example Java).
|
||||
|
@@ -732,14 +732,6 @@ func (c *config) Eng() bool {
|
||||
return Bool(c.productVariables.Eng)
|
||||
}
|
||||
|
||||
func (c *config) DevicePrefer32BitApps() bool {
|
||||
return Bool(c.productVariables.DevicePrefer32BitApps)
|
||||
}
|
||||
|
||||
func (c *config) DevicePrefer32BitExecutables() bool {
|
||||
return Bool(c.productVariables.DevicePrefer32BitExecutables)
|
||||
}
|
||||
|
||||
func (c *config) DevicePrimaryArchType() ArchType {
|
||||
return c.Targets[Android][0].Arch.ArchType
|
||||
}
|
||||
|
@@ -272,10 +272,6 @@ type productVariables struct {
|
||||
CoveragePaths []string `json:",omitempty"`
|
||||
CoverageExcludePaths []string `json:",omitempty"`
|
||||
|
||||
DevicePrefer32BitApps *bool `json:",omitempty"`
|
||||
DevicePrefer32BitExecutables *bool `json:",omitempty"`
|
||||
HostPrefer32BitExecutables *bool `json:",omitempty"`
|
||||
|
||||
SanitizeHost []string `json:",omitempty"`
|
||||
SanitizeDevice []string `json:",omitempty"`
|
||||
SanitizeDeviceDiag []string `json:",omitempty"`
|
||||
|
@@ -2280,9 +2280,6 @@ func newApexBundle() *apexBundle {
|
||||
module.AddProperties(&module.properties)
|
||||
module.AddProperties(&module.targetProperties)
|
||||
module.AddProperties(&module.overridableProperties)
|
||||
module.Prefer32(func(ctx android.BaseModuleContext, base *android.ModuleBase, class android.OsClass) bool {
|
||||
return class == android.Device && ctx.Config().DevicePrefer32BitExecutables()
|
||||
})
|
||||
android.InitAndroidMultiTargetsArchModule(module, android.HostAndDeviceSupported, android.MultilibCommon)
|
||||
android.InitDefaultableModule(module)
|
||||
android.InitSdkAwareModule(module)
|
||||
|
11
cc/cc.go
11
cc/cc.go
@@ -825,15 +825,8 @@ func (c *Module) Init() android.Module {
|
||||
}
|
||||
|
||||
c.Prefer32(func(ctx android.BaseModuleContext, base *android.ModuleBase, class android.OsClass) bool {
|
||||
switch class {
|
||||
case android.Device:
|
||||
return ctx.Config().DevicePrefer32BitExecutables()
|
||||
case android.HostCross:
|
||||
// Windows builds always prefer 32-bit
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
// Windows builds always prefer 32-bit
|
||||
return class == android.HostCross
|
||||
})
|
||||
android.InitAndroidArchModule(c, c.hod, c.multilib)
|
||||
android.InitApexModule(c)
|
||||
|
@@ -973,10 +973,6 @@ func AndroidAppFactory() android.Module {
|
||||
&module.overridableAppProperties,
|
||||
&module.usesLibrary.usesLibraryProperties)
|
||||
|
||||
module.Prefer32(func(ctx android.BaseModuleContext, base *android.ModuleBase, class android.OsClass) bool {
|
||||
return class == android.Device && ctx.Config().DevicePrefer32BitApps()
|
||||
})
|
||||
|
||||
android.InitAndroidMultiTargetsArchModule(module, android.DeviceSupported, android.MultilibCommon)
|
||||
android.InitDefaultableModule(module)
|
||||
android.InitOverridableModule(module, &module.appProperties.Overrides)
|
||||
|
@@ -260,9 +260,6 @@ func InitShBinaryModule(s *ShBinary) {
|
||||
// executable binary to <partition>/bin.
|
||||
func ShBinaryFactory() android.Module {
|
||||
module := &ShBinary{}
|
||||
module.Prefer32(func(ctx android.BaseModuleContext, base *android.ModuleBase, class android.OsClass) bool {
|
||||
return class == android.Device && ctx.Config().DevicePrefer32BitExecutables()
|
||||
})
|
||||
InitShBinaryModule(module)
|
||||
android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibFirst)
|
||||
return module
|
||||
|
Reference in New Issue
Block a user