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)
"libLLVMMIRParser",
"libLLVMRemarks",
"libLLVMJITLink",
+ "libLLVMCoroutines",
],
export_include_dirs: ["include"],
--- /dev/null
+cc_library_static {
+ name: "libLLVMCoroutines",
+ defaults: [
+ "llvm-lib-defaults",
+ ],
+ srcs: ["*.cpp"],
+}