Shih-wei Liao | 5460a1f | 2012-03-16 22:41:16 -0700 | [diff] [blame^] | 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 := -DANDROID_TARGET_BUILD \ |
| 7 | -finline-limit=64 \ |
| 8 | -finline-functions \ |
| 9 | -fno-inline-functions-called-once \ |
| 10 | $(LOCAL_CFLAGS) |
| 11 | |
| 12 | LOCAL_CPPFLAGS := \ |
| 13 | $(LOCAL_CPPFLAGS) \ |
| 14 | -Wformat \ |
| 15 | -Werror=format-security \ |
| 16 | -Werror=return-type \ |
| 17 | -Werror=non-virtual-dtor \ |
| 18 | -Werror=address \ |
| 19 | -Werror=sequence-point \ |
| 20 | -Woverloaded-virtual \ |
| 21 | -Wno-sign-promo |
| 22 | |
| 23 | ifeq ($(MCLD_ENABLE_ASSERTION),true) |
| 24 | LOCAL_CPPFLAGS += \ |
| 25 | -D_DEBUG \ |
| 26 | -UNDEBUG |
| 27 | endif |
| 28 | |
| 29 | # Make sure bionic is first so we can include system headers. |
| 30 | LOCAL_C_INCLUDES := \ |
| 31 | bionic \ |
| 32 | external/stlport/stlport \ |
| 33 | $(MCLD_ROOT_PATH)/include \ |
| 34 | $(LLVM_ROOT_PATH) \ |
| 35 | $(LLVM_ROOT_PATH)/include \ |
| 36 | $(LLVM_ROOT_PATH)/device/include \ |
| 37 | $(LOCAL_C_INCLUDES) |