Remove HostPrefer32BitExecutables

am: 20780c80a0

Change-Id: I266fe091cb8f32bfeac8558adb44c3e254914ca3
This commit is contained in:
Colin Cross
2016-09-03 00:35:54 +00:00
committed by android-build-merger
2 changed files with 4 additions and 10 deletions

View File

@@ -337,10 +337,6 @@ func (c *config) DevicePrefer32BitExecutables() bool {
return Bool(c.ProductVariables.DevicePrefer32BitExecutables)
}
func (c *config) HostPrefer32BitExecutables() bool {
return Bool(c.ProductVariables.HostPrefer32BitExecutables)
}
func (c *config) SkipDeviceInstall() bool {
return c.EmbeddedInMake() || Bool(c.Mega_device)
}

View File

@@ -168,13 +168,11 @@ func (binary *binaryDecorator) linkerInit(ctx BaseModuleContext) {
if binary.Properties.Stem == "" && binary.Properties.Suffix == "" {
ctx.PropertyErrorf("symlink_preferred_arch", "must also specify stem or suffix")
}
var prefer bool
if ctx.Host() {
prefer = ctx.AConfig().HostPrefer32BitExecutables()
} else {
prefer = ctx.AConfig().DevicePrefer32BitExecutables()
prefer32 := false
if ctx.Device() {
prefer32 = ctx.AConfig().DevicePrefer32BitExecutables()
}
if ctx.PrimaryArch() != prefer {
if ctx.PrimaryArch() != prefer32 {
binary.baseInstaller.Properties.Symlinks = append(binary.baseInstaller.Properties.Symlinks,
ctx.ModuleName())
}