1 LOCAL_MODULE_TARGET_ARCH := $(LLVM_SUPPORTED_ARCH)
7 -D__STDC_LIMIT_MACROS \
8 -D__STDC_CONSTANT_MACROS \
9 -D__STDC_FORMAT_MACROS \
11 -fomit-frame-pointer \
14 -Wno-unused-parameter \
19 # ARM64 builds seem to miscompile libLLVM without fno-inline.
20 # Test and eventually remove after a future rebase.
21 LOCAL_CFLAGS_arm64 += -fno-inline
23 # The three inline options together reduce libbcc.so almost 1MB.
24 # We move them from global build/core/combo/TARGET_linux-arm.mk
26 LOCAL_CFLAGS := -DANDROID_TARGET_BUILD \
30 ifeq ($(TARGET_BUILD_VARIANT),eng)
31 LOCAL_CFLAGS := -DANDROID_ENGINEERING_BUILD \
35 ifeq ($(LLVM_ENABLE_ASSERTION),true)
42 ifneq ($(REQUIRES_EH),1)
43 LOCAL_CFLAGS += -fno-exceptions
45 # No action. The device target should not have exception enabled since bionic
50 ifneq ($(REQUIRES_RTTI),1)
51 LOCAL_CPPFLAGS += -fno-rtti
58 -Woverloaded-virtual \
62 # Make sure bionic is first so we can include system headers.
65 external/libcxx/include \
67 $(LLVM_ROOT_PATH)/include \
68 $(LLVM_ROOT_PATH)/device/include \
71 include external/libcxx/libcxx.mk
73 ###########################################################
74 ## Commands for running tblgen to compile a td file
75 ###########################################################
76 define transform-device-td-to-out
78 @echo "Device TableGen (gen-$(1)): $(TBLGEN_LOCAL_MODULE) <= $<"
79 $(hide) $(LLVM_TBLGEN) \
81 -I $(LLVM_ROOT_PATH)/include \
82 -I $(LLVM_ROOT_PATH)/device/include \
83 -I $(LLVM_ROOT_PATH)/lib/Target \