Remove HostPrefer32BitExecutables
HOST_PREFER_32_BIT was used during the switch to 64-bit host tools to keep the SDK building as 32-bit, but is never set any more. Change-Id: I7c2db269d3f7fa1f4e0c022cbced789755a62d81
This commit is contained in:
@@ -337,10 +337,6 @@ func (c *config) DevicePrefer32BitExecutables() bool {
|
|||||||
return Bool(c.ProductVariables.DevicePrefer32BitExecutables)
|
return Bool(c.ProductVariables.DevicePrefer32BitExecutables)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *config) HostPrefer32BitExecutables() bool {
|
|
||||||
return Bool(c.ProductVariables.HostPrefer32BitExecutables)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *config) SkipDeviceInstall() bool {
|
func (c *config) SkipDeviceInstall() bool {
|
||||||
return c.EmbeddedInMake() || Bool(c.Mega_device)
|
return c.EmbeddedInMake() || Bool(c.Mega_device)
|
||||||
}
|
}
|
||||||
|
10
cc/binary.go
10
cc/binary.go
@@ -168,13 +168,11 @@ func (binary *binaryDecorator) linkerInit(ctx BaseModuleContext) {
|
|||||||
if binary.Properties.Stem == "" && binary.Properties.Suffix == "" {
|
if binary.Properties.Stem == "" && binary.Properties.Suffix == "" {
|
||||||
ctx.PropertyErrorf("symlink_preferred_arch", "must also specify stem or suffix")
|
ctx.PropertyErrorf("symlink_preferred_arch", "must also specify stem or suffix")
|
||||||
}
|
}
|
||||||
var prefer bool
|
prefer32 := false
|
||||||
if ctx.Host() {
|
if ctx.Device() {
|
||||||
prefer = ctx.AConfig().HostPrefer32BitExecutables()
|
prefer32 = ctx.AConfig().DevicePrefer32BitExecutables()
|
||||||
} else {
|
|
||||||
prefer = ctx.AConfig().DevicePrefer32BitExecutables()
|
|
||||||
}
|
}
|
||||||
if ctx.PrimaryArch() != prefer {
|
if ctx.PrimaryArch() != prefer32 {
|
||||||
binary.baseInstaller.Properties.Symlinks = append(binary.baseInstaller.Properties.Symlinks,
|
binary.baseInstaller.Properties.Symlinks = append(binary.baseInstaller.Properties.Symlinks,
|
||||||
ctx.ModuleName())
|
ctx.ModuleName())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user