aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-10-15 14:05:01 -0700
committerTim Murray <timmurray@google.com>2014-10-15 14:17:58 -0700
commit38883df9fc8fc1c488d5b53828c6bd3dfe2ddbb8 (patch)
treeae68ff200c7de5de9fd4aac77b10a677ae83a47c
parentf084384e0d00eb169928199bf1093e7f0a53358a (diff)
downloadlibbcc-lollipop-dev.tar.gz
add ARM support for x86 bcc if specifiedlollipop-dev
bug 17765171 Change-Id: I6442f51ed1cab343bb50a0fadbcfe1ab8e998a95
-rw-r--r--libbcc-targets.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbcc-targets.mk b/libbcc-targets.mk
index 35b1ee7..a95a9aa 100644
--- a/libbcc-targets.mk
+++ b/libbcc-targets.mk
@@ -35,6 +35,12 @@ LOCAL_CFLAGS_mips64 += -DFORCE_MIPS64_CODEGEN
LOCAL_CFLAGS_x86 += -DFORCE_X86_CODEGEN
LOCAL_CFLAGS_x86_64 += -DFORCE_X86_64_CODEGEN
+ifeq ($(BUILD_ARM_FOR_X86),true)
+LOCAL_CFLAGS_x86 += -DPROVIDE_ARM_CODEGEN -DFORCE_BUILD_ARM
+LOCAL_CFLAGS_x86_64 += -DPROVIDE_ARM_CODEGEN -DFORCE_BUILD_ARM
+endif
+
+
ifeq (,$(filter $(TARGET_ARCH),arm64 arm mips mips64 x86 x86_64))
$(error Unsupported architecture $(TARGET_ARCH))
endif