-W \
-Wno-unused-parameter \
-Wwrite-strings \
+ -Werror \
-Dsprintf=sprintf \
$(LOCAL_CFLAGS)
-# ARM64 builds seem to miscompile libLLVM without fno-inline.
-# Test and eventually remove after a future rebase.
-LOCAL_CFLAGS_arm64 := -fno-inline
-
# 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)
endif
-ifeq ($(LLVM_ENABLE_ASSERTION),true)
+ifeq ($(FORCE_BUILD_LLVM_DISABLE_NDEBUG),true)
LOCAL_CFLAGS := \
$(LOCAL_CFLAGS) \
-D_DEBUG \
# Make sure bionic is first so we can include system headers.
LOCAL_C_INCLUDES := \
bionic \
- external/libcxx/include \
$(LLVM_ROOT_PATH) \
$(LLVM_ROOT_PATH)/include \
$(LLVM_ROOT_PATH)/device/include \
$(LOCAL_C_INCLUDES)
-include external/libcxx/libcxx.mk
-
###########################################################
## Commands for running tblgen to compile a td file
###########################################################