OSDN Git Service

android: ToolDrivers: fix Attributes dependency
authorMauro Rossi <issor.oruam@gmail.com>
Tue, 24 Mar 2020 21:43:45 +0000 (22:43 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Tue, 24 Mar 2020 22:34:08 +0000 (23:34 +0100)
Fixes the following building error:

In file included from external/llvm90/lib/ToolDrivers/llvm-lib/LibDriver.cpp:18:
In file included from external/llvm90/include/llvm/Bitcode/BitcodeReader.h:19:
In file included from external/llvm90/include/llvm/IR/ModuleSummaryIndex.h:27:
In file included from external/llvm90/include/llvm/IR/Module.h:23:
external/llvm90/include/llvm/IR/Attributes.h:73:14: fatal error: 'llvm/IR/Attributes.inc' file not found
    #include "llvm/IR/Attributes.inc"
             ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

lib/ToolDrivers/llvm-lib/Android.mk

index 39461bc..937bf81 100644 (file)
@@ -20,6 +20,7 @@ LOCAL_MODULE_HOST_OS := darwin linux windows
 
 include $(LLVM90_HOST_BUILD_MK)
 include $(LLVM90_TBLGEN_RULES_MK)
+include $(LLVM90_GEN_ATTRIBUTES_MK)
 include $(BUILD_HOST_STATIC_LIBRARY)
 
 # For the device
@@ -36,5 +37,6 @@ LOCAL_MODULE:= libLLVM90LibDriver
 
 include $(LLVM90_DEVICE_BUILD_MK)
 include $(LLVM90_TBLGEN_RULES_MK)
+include $(LLVM90_GEN_ATTRIBUTES_MK)
 include $(BUILD_STATIC_LIBRARY)
 endif