OSDN Git Service

Remove Intrinsics.td from LOCAL_SRC_FILES
[android-x86/external-llvm.git] / llvm-device-build.mk
index a0691e7..627ad0c 100644 (file)
@@ -13,13 +13,10 @@ LOCAL_CFLAGS :=     \
        -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.
@@ -32,7 +29,7 @@ LOCAL_CFLAGS := -DANDROID_ENGINEERING_BUILD \
                 $(LOCAL_CFLAGS)
 endif
 
-ifeq ($(LLVM_ENABLE_ASSERTION),true)
+ifeq ($(FORCE_BUILD_LLVM_DISABLE_NDEBUG),true)
 LOCAL_CFLAGS :=        \
        $(LOCAL_CFLAGS) \
        -D_DEBUG        \
@@ -62,14 +59,11 @@ LOCAL_CPPFLAGS :=   \
 # 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
 ###########################################################