aboutsummaryrefslogtreecommitdiffstats
path: root/llvm-host-build.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-08-19 17:39:26 -0700
committerYing Wang <wangying@google.com>2010-08-19 17:39:26 -0700
commit28c238c9ded0b5c91e122c94b5a02d76a5245c11 (patch)
treeb85fb84a4b31993292f3d88b66df518ed5975b3c /llvm-host-build.mk
parent3e5165a7cc01d28b680a5f409eda72788cb451d3 (diff)
downloadexternal_llvm-28c238c9ded0b5c91e122c94b5a02d76a5245c11.zip
external_llvm-28c238c9ded0b5c91e122c94b5a02d76a5245c11.tar.gz
external_llvm-28c238c9ded0b5c91e122c94b5a02d76a5245c11.tar.bz2
Fix sim build.
Note that this only makes the sim build green, but the built images won't work for sure: No libbcc.so, which depends on something else that can not build in sim mode. No x86 bitcode is generated as well, I believe. Change-Id: Idca8378427196622ac77cd56a38c6a160f03ba22
Diffstat (limited to 'llvm-host-build.mk')
-rw-r--r--llvm-host-build.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm-host-build.mk b/llvm-host-build.mk
index ca2f258..7160b52 100644
--- a/llvm-host-build.mk
+++ b/llvm-host-build.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_CFLAGS := \
-D_GNU_SOURCE \
-D__STDC_LIMIT_MACROS \
@@ -20,6 +17,12 @@ LOCAL_CFLAGS := \
$(LOCAL_CFLAGS)
endif
+# force 32 bit code for sim build
+ifeq ($(TARGET_SIMULATOR),true)
+LOCAL_CFLAGS += -m32
+LOCAL_LDFLAGS += -m32
+endif
+
ifneq ($(REQUIRES_EH),1)
LOCAL_CFLAGS += -fno-exceptions
else
@@ -60,5 +63,3 @@ $(hide) $(TBLGEN) \
-gen-$(strip $(1)) \
-o $@ $<
endef
-
-endif