-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.
$(LLVM_ROOT_PATH)/device/include \
$(LOCAL_C_INCLUDES)
+include external/libcxx/libcxx.mk
+
###########################################################
## Commands for running tblgen to compile a td file
###########################################################
define transform-device-td-to-out
@mkdir -p $(dir $@)
@echo "Device TableGen (gen-$(1)): $(TBLGEN_LOCAL_MODULE) <= $<"
-$(hide) $(TBLGEN) \
+$(hide) $(LLVM_TBLGEN) \
-I $(dir $<) \
-I $(LLVM_ROOT_PATH)/include \
-I $(LLVM_ROOT_PATH)/device/include \