1LOCAL_MODULE_TARGET_ARCH := $(LLVM_SUPPORTED_ARCH) 2 3LOCAL_CFLAGS := \ 4 -D_GNU_SOURCE \ 5 -D__STDC_LIMIT_MACROS \ 6 -D__STDC_CONSTANT_MACROS \ 7 -D__STDC_FORMAT_MACROS \ 8 -O2 \ 9 -fomit-frame-pointer \ 10 -Wall \ 11 -W \ 12 -Wno-sign-compare \ 13 -Wno-unused-parameter \ 14 -Wwrite-strings \ 15 -Werror \ 16 -Dsprintf=sprintf \ 17 $(LOCAL_CFLAGS) 18 19# The three inline options together reduce libbcc.so almost 1MB. 20# We move them from global build/core/combo/TARGET_linux-arm.mk 21# to here. 22LOCAL_CFLAGS := -DANDROID_TARGET_BUILD \ 23 -finline-functions \ 24 $(LOCAL_CFLAGS) 25 26ifeq ($(TARGET_BUILD_VARIANT),eng) 27LOCAL_CFLAGS := -DANDROID_ENGINEERING_BUILD \ 28 $(LOCAL_CFLAGS) 29endif 30 31ifeq ($(FORCE_BUILD_LLVM_DISABLE_NDEBUG),true) 32LOCAL_CFLAGS := \ 33 $(LOCAL_CFLAGS) \ 34 -D_DEBUG \ 35 -UNDEBUG 36endif 37 38LOCAL_CPPFLAGS := \ 39 $(LOCAL_CPPFLAGS) \ 40 -Woverloaded-virtual \ 41 -Wno-sign-promo \ 42 -std=c++11 43 44# Make sure bionic is first so we can include system headers. 45LOCAL_C_INCLUDES := \ 46 bionic \ 47 $(LLVM_ROOT_PATH) \ 48 $(LLVM_ROOT_PATH)/include \ 49 $(LLVM_ROOT_PATH)/device/include \ 50 $(LOCAL_C_INCLUDES) 51