Support HOST_PREFER_32_BIT
HOST_PREFER_32_BIT has been removed from the build system, support it
directly in art. When it is set, set the compile_multilib property of
all host art modules to "prefer32".
Change-Id: I794df17a805588392bd448983f279e4b8c8fe1c6
diff --git a/build/art.go b/build/art.go
index f305c07..ffe870b 100644
--- a/build/art.go
+++ b/build/art.go
@@ -137,6 +137,20 @@
p.Target.Android.Cflags = deviceFlags(ctx)
p.Target.Host.Cflags = hostFlags(ctx)
ctx.AppendProperties(p)
+
+ if envTrue(ctx, "HOST_PREFER_32_BIT") {
+ type props struct {
+ Target struct {
+ Host struct {
+ Compile_multilib string
+ }
+ }
+ }
+
+ p := &props{}
+ p.Target.Host.Compile_multilib = "prefer32"
+ ctx.AppendProperties(p)
+ }
}
type artGlobalDefaults struct{}