OSDN Git Service

android: Coroutines: add support for libLLVMCoroutines
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 22 Sep 2019 17:52:06 +0000 (19:52 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:06 +0000 (13:05 +0200)
Fixes the following building error with mesa 19.3 branch:

FAILED: out/target/product/x86_64/obj/SHARED_LIBRARIES/gallium_dri_intermediates/LINKED/gallium_dri.so
...
external/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c:137: error: undefined reference to 'LLVMAddCoroEarlyPass'
external/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c:138: error: undefined reference to 'LLVMAddCoroSplitPass'
external/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c:139: error: undefined reference to 'LLVMAddCoroElidePass'
external/mesa/src/gallium/auxiliary/gallivm/lp_bld_init.c:169: error: undefined reference to 'LLVMAddCoroCleanupPass'
clang.real: error: linker command failed with exit code 1 (use -v to see invocation)

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

index 47802e5..eb19010 100644 (file)
@@ -277,6 +277,7 @@ cc_library_shared {
         "libLLVMMIRParser",
         "libLLVMRemarks",
         "libLLVMJITLink",
+        "libLLVMCoroutines",
     ],
 
     export_include_dirs: ["include"],
diff --git a/llvm/lib/Transforms/Coroutines/Android.bp b/llvm/lib/Transforms/Coroutines/Android.bp
new file mode 100644 (file)
index 0000000..8d1beca
--- /dev/null
@@ -0,0 +1,7 @@
+cc_library_static {
+    name: "libLLVMCoroutines",
+    defaults: [
+        "llvm-lib-defaults",
+    ],
+    srcs: ["*.cpp"],
+}