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
diff --git a/cc/binary.go b/cc/binary.go
index 38fc938..b6d66dd 100644
--- a/cc/binary.go
+++ b/cc/binary.go
@@ -168,13 +168,11 @@
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())
}