OSDN Git Service

android: add support for libLLVMTextAPI
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 9 Feb 2020 19:49:28 +0000 (20:49 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:08 +0000 (13:05 +0200)
Fixes the following building errors:

external/llvm/include/llvm/TextAPI/MachO/Symbol.h:66: error: undefined reference to
'llvm::MachO::mapToArchitectureSet(llvm::ArrayRef<llvm::MachO::Target>)'
external/llvm/include/llvm/TextAPI/MachO/InterfaceFile.h:191: error: undefined reference to
'llvm::MachO::mapToPlatformSet(llvm::ArrayRef<llvm::MachO::Target>)'
external/llvm/lib/Object/TapiUniversal.cpp:25: error: undefined reference to
'llvm::MachO::TextAPIReader::get(llvm::MemoryBufferRef)'
external/llvm/include/llvm/TextAPI/MachO/InterfaceFile.h:185: error: undefined reference to
'llvm::MachO::mapToArchitectureSet(llvm::ArrayRef<llvm::MachO::Target>)'

llvm/Android.bp
llvm/lib/TextAPI/Android.bp [new file with mode: 0644]

index 3435854..a1c8419 100644 (file)
@@ -279,6 +279,7 @@ cc_library_shared {
         "libLLVMRemarks",
         "libLLVMJITLink",
         "libLLVMCoroutines",
+        "libLLVMTextAPI",
     ],
 
     export_include_dirs: ["include"],
diff --git a/llvm/lib/TextAPI/Android.bp b/llvm/lib/TextAPI/Android.bp
new file mode 100644 (file)
index 0000000..660568d
--- /dev/null
@@ -0,0 +1,10 @@
+cc_library_static {
+    name: "libLLVMTextAPI",
+    defaults: [
+        "llvm-lib-defaults",
+    ],
+    srcs: [
+        "ELF/*.cpp",
+        "MachO/*.cpp",
+    ],
+}