android: Coroutines: add support for libLLVMCoroutines (llvm80)
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)
diff --git a/Android.bp b/Android.bp
index 7894dd3..da54e3d 100644
--- a/Android.bp
+++ b/Android.bp
@@ -274,6 +274,7 @@
"libLLVM80MCJIT",
"libLLVM80OrcJIT",
"libLLVM80BinaryFormat",
+ "libLLVM80Coroutines",
],
export_include_dirs: ["include"],
diff --git a/lib/Transforms/Coroutines/Android.bp b/lib/Transforms/Coroutines/Android.bp
new file mode 100644
index 0000000..6b2c409
--- /dev/null
+++ b/lib/Transforms/Coroutines/Android.bp
@@ -0,0 +1,7 @@
+cc_library_static {
+ name: "libLLVM80Coroutines",
+ defaults: [
+ "llvm80-lib-defaults",
+ ],
+ srcs: ["*.cpp"],
+}