Home | History | Annotate | Download | only in mclinker
      1 include $(LLVM_DEVICE_BUILD_MK)
      2 
      3 # The three inline options together reduce libbcc.so almost 1MB.
      4 # We move them from global build/core/combo/TARGET_linux-arm.mk
      5 # to here.
      6 LOCAL_CFLAGS := \
      7   -DANDROID_TARGET_BUILD \
      8   -finline-functions \
      9   -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
     10   $(LOCAL_CFLAGS)
     11 
     12 LOCAL_CPPFLAGS := \
     13   $(LOCAL_CPPFLAGS) \
     14   -Wall \
     15   -Wno-unused-parameter \
     16   -Wno-unused-private-field \
     17   -Wno-unused-const-variable \
     18   -Werror
     19 
     20 ifeq ($(MCLD_ENABLE_ASSERTION),true)
     21   LOCAL_CPPFLAGS += \
     22     -D_DEBUG \
     23     -UNDEBUG
     24 endif
     25 
     26 ifeq ($(HOST_OS),darwin)
     27 LOCAL_CFLAGS += -DDARWIN_FLEX=1
     28 endif
     29 
     30 ifeq ($(BUILD_ARM_FOR_X86),true)
     31 LOCAL_CFLAGS_x86 += -DPROVIDE_ARM_CODEGEN -DFORCE_BUILD_ARM
     32 LOCAL_CFLAGS_x86_64 += -DPROVIDE_ARM_CODEGEN -DFORCE_BUILD_ARM
     33 endif
     34 
     35 # Make sure bionic is first so we can include system headers.
     36 LOCAL_C_INCLUDES := \
     37   bionic \
     38   external/libcxx/include \
     39   external/libcxxabi/include \
     40   $(MCLD_ROOT_PATH)/include \
     41   $(LLVM_ROOT_PATH) \
     42   $(LLVM_ROOT_PATH)/include \
     43   $(LLVM_ROOT_PATH)/device/include \
     44   $(LOCAL_C_INCLUDES)
     45