You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB

LOCAL_MODULE_TARGET_ARCH := $(LLVM_SUPPORTED_ARCH)
LOCAL_CFLAGS := \
-D_GNU_SOURCE \
-D__STDC_LIMIT_MACROS \
-D__STDC_CONSTANT_MACROS \
-D__STDC_FORMAT_MACROS \
-O2 \
-fomit-frame-pointer \
-Wall \
-W \
-Wno-sign-compare \
-Wno-unused-parameter \
-Wwrite-strings \
-Werror \
-Dsprintf=sprintf \
$(LOCAL_CFLAGS)
# The three inline options together reduce libbcc.so almost 1MB.
# We move them from global build/core/combo/TARGET_linux-arm.mk
# to here.
LOCAL_CFLAGS := -DANDROID_TARGET_BUILD \
-finline-functions \
$(LOCAL_CFLAGS)
ifeq ($(TARGET_BUILD_VARIANT),eng)
LOCAL_CFLAGS := -DANDROID_ENGINEERING_BUILD \
$(LOCAL_CFLAGS)
endif
ifeq ($(FORCE_BUILD_LLVM_DISABLE_NDEBUG),true)
LOCAL_CFLAGS := \
$(LOCAL_CFLAGS) \
-D_DEBUG \
-UNDEBUG
endif
LOCAL_CPPFLAGS := \
$(LOCAL_CPPFLAGS) \
-Woverloaded-virtual \
-Wno-sign-promo \
-std=c++11
# Make sure bionic is first so we can include system headers.
LOCAL_C_INCLUDES := \
bionic \
$(LLVM_ROOT_PATH) \
$(LLVM_ROOT_PATH)/include \
$(LLVM_ROOT_PATH)/device/include \
$(LOCAL_C_INCLUDES)