1 # Only use this on the device or emulator.
2 ifneq ($(TARGET_ARCH),arm)
6 -D__STDC_LIMIT_MACROS \
7 -D__STDC_CONSTANT_MACROS \
8 -DANDROID_TARGET_BUILD \
10 -fomit-frame-pointer \
13 -Wno-unused-parameter \
17 ifeq ($(LLVM_ENABLE_ASSERTION),true)
24 ifneq ($(REQUIRES_EH),1)
25 LOCAL_CFLAGS += -fno-exceptions
27 # No action. The device target should not have exception enabled since bionic
32 ifneq ($(REQUIRES_RTTI),1)
33 LOCAL_CPPFLAGS += -fno-rtti
42 # Make sure bionic is first so we can include system headers.
45 external/stlport/stlport \
47 $(LLVM_ROOT_PATH)/include \
48 $(LLVM_ROOT_PATH)/device/include \
51 ###########################################################
52 ## Commands for running tblgen to compile a td file
53 ###########################################################
54 define transform-device-td-to-out
56 @echo "Device TableGen (gen-$(1)): $(LOCAL_MODULE) <= $<"
59 -I $(LLVM_ROOT_PATH)/include \
60 -I $(LLVM_ROOT_PATH)/device/include \
61 -I $(LLVM_ROOT_PATH)/lib/Target \